From e9caf93bbb3428dd8d9c611a7cbcd16c303d58a1 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sat, 8 May 1999 10:47:23 +0000 Subject: [PATCH] Removed TIMER_SwitchQueue. --- include/message.h | 1 - loader/task.c | 2 -- windows/timer.c | 20 -------------------- 3 files changed, 23 deletions(-) diff --git a/include/message.h b/include/message.h index b8dcc10d5dc..6fa9cb8de84 100644 --- a/include/message.h +++ b/include/message.h @@ -21,7 +21,6 @@ extern BOOL MSG_InternalGetMessage( MSG *msg, HWND hwnd, extern BOOL TIMER_Init( void ); extern void TIMER_RemoveWindowTimers( HWND hwnd ); extern void TIMER_RemoveQueueTimers( HQUEUE16 hqueue ); -extern void TIMER_SwitchQueue( HQUEUE16 hOldQueue, HQUEUE16 hNewQueue ); extern BOOL TIMER_GetTimerMsg( MSG *msg, HWND hwnd, HQUEUE16 hQueue, BOOL remove ); diff --git a/loader/task.c b/loader/task.c index e69d64b2259..05052e23f4e 100644 --- a/loader/task.c +++ b/loader/task.c @@ -1240,8 +1240,6 @@ HQUEUE16 WINAPI SetTaskQueue16( HTASK16 hTask, HQUEUE16 hQueue ) hPrev = pTask->hQueue; pTask->hQueue = hQueue; - TIMER_SwitchQueue( hPrev, hQueue ); - return hPrev; } diff --git a/windows/timer.c b/windows/timer.c index 89dd416ded5..5e68ba49c23 100644 --- a/windows/timer.c +++ b/windows/timer.c @@ -118,26 +118,6 @@ static void TIMER_ClearTimer( TIMER * pTimer ) } -/*********************************************************************** - * TIMER_SwitchQueue - */ -void TIMER_SwitchQueue( HQUEUE16 old, HQUEUE16 new ) -{ - TIMER * pT; - - EnterCriticalSection( &csTimer ); - - pT = pNextTimer; - while (pT) - { - if (pT->hq == old) pT->hq = new; - pT = pT->next; - } - - LeaveCriticalSection( &csTimer ); -} - - /*********************************************************************** * TIMER_RemoveWindowTimers *