From 4ef8ef5ae9bacf3e41a38c382af6eff0e3f383f6 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Wed, 24 Nov 2010 14:13:12 +0000 Subject: [PATCH] [win32k] - Remove some unused functions svn path=/trunk/; revision=49769 --- .../win32/win32k/include/msgqueue.h | 3 -- .../subsystems/win32/win32k/ntuser/msgqueue.c | 37 ------------------- .../subsystems/win32/win32k/ntuser/window.c | 35 ------------------ 3 files changed, 75 deletions(-) diff --git a/reactos/subsystems/win32/win32k/include/msgqueue.h b/reactos/subsystems/win32/win32k/include/msgqueue.h index 6bda51dc7ed..8a8bac87a24 100644 --- a/reactos/subsystems/win32/win32k/include/msgqueue.h +++ b/reactos/subsystems/win32/win32k/include/msgqueue.h @@ -165,9 +165,6 @@ NTSTATUS FASTCALL co_MsqWaitForNewMessages(PUSER_MESSAGE_QUEUE MessageQueue, PWND WndFilter, UINT MsgFilterMin, UINT MsgFilterMax); VOID FASTCALL -MsqSendNotifyMessage(PUSER_MESSAGE_QUEUE MessageQueue, - PUSER_SENT_MESSAGE_NOTIFY NotifyMessage); -VOID FASTCALL MsqIncPaintCountQueue(PUSER_MESSAGE_QUEUE Queue); VOID FASTCALL MsqDecPaintCountQueue(PUSER_MESSAGE_QUEUE Queue); diff --git a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c index 17841567055..b03ba84365b 100644 --- a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c +++ b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c @@ -360,34 +360,6 @@ MsqDestroyMessage(PUSER_MESSAGE Message) ExFreeToPagedLookasideList(&MessageLookasideList, Message); } -VOID FASTCALL -co_MsqDispatchSentNotifyMessages(PUSER_MESSAGE_QUEUE MessageQueue) -{ - PLIST_ENTRY ListEntry; - PUSER_SENT_MESSAGE_NOTIFY Message; - - while (!IsListEmpty(&MessageQueue->SentMessagesListHead)) - { - ListEntry = RemoveHeadList(&MessageQueue->SentMessagesListHead); - Message = CONTAINING_RECORD(ListEntry, USER_SENT_MESSAGE_NOTIFY, - ListEntry); - - co_IntCallSentMessageCallback(Message->CompletionCallback, - Message->hWnd, - Message->Msg, - Message->CompletionCallbackContext, - Message->Result); - - } - -} - -BOOLEAN FASTCALL -MsqPeekSentMessages(PUSER_MESSAGE_QUEUE MessageQueue) -{ - return(!IsListEmpty(&MessageQueue->SentMessagesListHead)); -} - BOOLEAN FASTCALL co_MsqDispatchOneSentMessage(PUSER_MESSAGE_QUEUE MessageQueue) { @@ -572,15 +544,6 @@ MsqRemoveWindowMessagesFromQueue(PVOID pWindow) } } -VOID FASTCALL -MsqSendNotifyMessage(PUSER_MESSAGE_QUEUE MessageQueue, - PUSER_SENT_MESSAGE_NOTIFY NotifyMessage) -{ - InsertTailList(&MessageQueue->NotifyMessagesListHead, - &NotifyMessage->ListEntry); - MsqWakeQueue(MessageQueue, QS_SENDMESSAGE); -} - NTSTATUS FASTCALL co_MsqSendMessage(PUSER_MESSAGE_QUEUE MessageQueue, HWND Wnd, UINT Msg, WPARAM wParam, LPARAM lParam, diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index adc82e98bf1..5e6e886e2b3 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -656,22 +656,6 @@ IntSetWindowProc(PWND pWnd, return Ret; } -// Move this to user space! -BOOL FASTCALL -IntGetWindowInfo(PWND Wnd, PWINDOWINFO pwi) -{ - pwi->cbSize = sizeof(WINDOWINFO); - pwi->rcWindow = Wnd->rcWindow; - pwi->rcClient = Wnd->rcClient; - pwi->dwStyle = Wnd->style; - pwi->dwExStyle = Wnd->ExStyle; - pwi->dwWindowStatus = (UserGetForegroundWindow() == Wnd->head.h); /* WS_ACTIVECAPTION */ - IntGetWindowBorderMeasures(Wnd, &pwi->cxWindowBorders, &pwi->cyWindowBorders); - pwi->atomWindowType = (Wnd->pcls ? Wnd->pcls->atomClassName : 0); - pwi->wCreatorVersion = 0x400; /* FIXME - return a real version number */ - return TRUE; -} - static BOOL FASTCALL IntSetMenu( PWND Wnd, @@ -800,25 +784,6 @@ IntGetClientRect(PWND Window, RECTL *Rect) } -#if 0 -HWND FASTCALL -IntGetFocusWindow(VOID) -{ - PUSER_MESSAGE_QUEUE Queue; - PDESKTOP pdo = IntGetActiveDesktop(); - - if( !pdo ) - return NULL; - - Queue = (PUSER_MESSAGE_QUEUE)pdo->ActiveMessageQueue; - - if (Queue == NULL) - return(NULL); - else - return(Queue->FocusWindow); -} -#endif - PMENU_OBJECT FASTCALL IntGetSystemMenu(PWND Window, BOOL bRevert, BOOL RetMenu) { -- 2.17.1