os: drop unused TimerCheck()

This isn't used anywhere, so can be dropped.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1789>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-13 16:27:23 +01:00 committed by Marge Bot
parent d973c43810
commit 1dc648b1b7
3 changed files with 2 additions and 13 deletions

View File

@ -859,7 +859,7 @@ Similarly, the X server or an extension may need to wait for some timeout.
Early X releases implemented this functionality using block and wakeup handlers,
but this has been rewritten to use a general timer facilty, and the
internal screen saver facilities reimplemented to use Timers.
These functions are TimerInit, TimerForce, TimerSet, TimerCheck, TimerCancel,
These functions are TimerInit, TimerForce, TimerSet, TimerCancel,
and TimerFree, as defined in Xserver/include/os.h. A callback function will be called
when the timer fires, along with the current time, and a user provided argument.
<blockquote><programlisting>
@ -892,8 +892,6 @@ for the timer entry.
Bool TimerForce(OsTimerPtr /* pTimer */)
void TimerCheck(void);
void TimerCancel(OsTimerPtr /* pTimer */)
void TimerFree(OsTimerPtr /* pTimer */)
@ -904,7 +902,6 @@ TimerInit frees any existing timer entries. TimerForce forces a call to the time
callback function and returns true if the timer entry existed, else it returns false and
does not call the callback function. TimerCancel will cancel the specified timer.
TimerFree calls TimerCancel and frees the specified timer.
Calling TimerCheck will force the server to see if any timer callbacks should be called.
</para>
</section>
</section>
@ -5048,7 +5045,6 @@ mi and fb implementations.</para>
<row><entry><function>StoreColors</function></entry><entry><literal>ddx</literal></entry><entry><para>Screen</para></entry></row>
<row><entry><function>Subtract</function></entry><entry><literal>mi</literal></entry><entry><para>Screen</para></entry></row>
<row><entry><function>TimerCancel</function></entry><entry><literal>os</literal></entry><entry><para></para></entry></row>
<row><entry><function>TimerCheck</function></entry><entry><literal>os</literal></entry><entry><para></para></entry></row>
<row><entry><function>TimerForce</function></entry><entry><literal>os</literal></entry><entry><para></para></entry></row>
<row><entry><function>TimerFree</function></entry><entry><literal>os</literal></entry><entry><para></para></entry></row>
<row><entry><function>TimerInit</function></entry><entry><literal>os</literal></entry><entry><para></para></entry></row>

View File

@ -127,7 +127,6 @@ extern _X_EXPORT OsTimerPtr TimerSet(OsTimerPtr timer,
OsTimerCallback func,
void *arg);
extern _X_EXPORT void TimerCheck(void);
extern _X_EXPORT void TimerCancel(OsTimerPtr /* pTimer */ );
extern _X_EXPORT void TimerFree(OsTimerPtr /* pTimer */ );

View File

@ -48,7 +48,7 @@ SOFTWARE.
* OS Dependent input routines:
*
* WaitForSomething
* TimerForce, TimerSet, TimerCheck, TimerFree
* TimerForce, TimerSet, TimerFree
*
*****************************************************************/
@ -373,12 +373,6 @@ TimerFree(OsTimerPtr timer)
free(timer);
}
void
TimerCheck(void)
{
DoTimers(GetTimeInMillis());
}
void
TimerInit(void)
{