refactor: use ArchDaemonWindows::getDaemonQuitMessage directly
remove now unused ArchMiscWindows::getDaemonQuitMessage
This commit is contained in:
parent
c7da833f07
commit
3ff06b7d9a
3 changed files with 2 additions and 13 deletions
|
|
@ -75,11 +75,6 @@ void ArchMiscWindows::daemonFailed(int result)
|
||||||
ArchDaemonWindows::daemonFailed(result);
|
ArchDaemonWindows::daemonFailed(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT ArchMiscWindows::getDaemonQuitMessage()
|
|
||||||
{
|
|
||||||
return ArchDaemonWindows::getDaemonQuitMessage();
|
|
||||||
}
|
|
||||||
|
|
||||||
HKEY ArchMiscWindows::openKey(HKEY key, const TCHAR *keyName)
|
HKEY ArchMiscWindows::openKey(HKEY key, const TCHAR *keyName)
|
||||||
{
|
{
|
||||||
return openKey(key, keyName, false);
|
return openKey(key, keyName, false);
|
||||||
|
|
|
||||||
|
|
@ -53,12 +53,6 @@ public:
|
||||||
*/
|
*/
|
||||||
static void daemonFailed(int result);
|
static void daemonFailed(int result);
|
||||||
|
|
||||||
//! Get daemon quit message
|
|
||||||
/*!
|
|
||||||
Delegates to ArchDaemonWindows.
|
|
||||||
*/
|
|
||||||
static UINT getDaemonQuitMessage();
|
|
||||||
|
|
||||||
//! Open and return a registry key, closing the parent key
|
//! Open and return a registry key, closing the parent key
|
||||||
static HKEY openKey(HKEY parent, const TCHAR *child);
|
static HKEY openKey(HKEY parent, const TCHAR *child);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#include "platform/MSWindowsEventQueueBuffer.h"
|
#include "platform/MSWindowsEventQueueBuffer.h"
|
||||||
|
|
||||||
#include "arch/win32/ArchMiscWindows.h"
|
#include "arch/win32/ArchDaemonWindows.h"
|
||||||
#include "base/IEventQueue.h"
|
#include "base/IEventQueue.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
@ -24,7 +24,7 @@ MSWindowsEventQueueBuffer::MSWindowsEventQueueBuffer(IEventQueue *events) : m_ev
|
||||||
m_userEvent = RegisterWindowMessage(L"DESKFLOW_USER_EVENT");
|
m_userEvent = RegisterWindowMessage(L"DESKFLOW_USER_EVENT");
|
||||||
|
|
||||||
// get message type for daemon quit
|
// get message type for daemon quit
|
||||||
m_daemonQuit = ArchMiscWindows::getDaemonQuitMessage();
|
m_daemonQuit = ArchDaemonWindows::getDaemonQuitMessage();
|
||||||
|
|
||||||
// make sure this thread has a message queue
|
// make sure this thread has a message queue
|
||||||
MSG dummy;
|
MSG dummy;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue