From 94197b604e720484c8ecb47b2395dacb9cc2dd7d Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Thu, 4 Dec 2014 16:41:54 +0100 Subject: [PATCH] WiimoteReal: inline unnecessary function --- Source/Core/Core/HW/WiimoteReal/IOWin.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Source/Core/Core/HW/WiimoteReal/IOWin.cpp b/Source/Core/Core/HW/WiimoteReal/IOWin.cpp index 070d118868..ae3aae3ca9 100644 --- a/Source/Core/Core/HW/WiimoteReal/IOWin.cpp +++ b/Source/Core/Core/HW/WiimoteReal/IOWin.cpp @@ -190,7 +190,6 @@ namespace WiimoteReal int _IOWrite(HANDLE &dev_handle, OVERLAPPED &hid_overlap_write, enum win_bt_stack_t &stack, const u8* buf, size_t len, DWORD* written); int _IORead(HANDLE &dev_handle, OVERLAPPED &hid_overlap_read, u8* buf, int index); -void _IOWakeup(HANDLE &dev_handle, OVERLAPPED &hid_overlap_read); template void ProcessWiimotes(bool new_scan, T& callback); @@ -607,11 +606,6 @@ bool Wiimote::IsConnected() const return m_dev_handle != 0; } -void _IOWakeup(HANDLE &dev_handle, OVERLAPPED &hid_overlap_read) -{ - SetEvent(hid_overlap_read.hEvent); -} - // positive = read packet // negative = didn't read packet // zero = error @@ -632,7 +626,7 @@ int _IORead(HANDLE &dev_handle, OVERLAPPED &hid_overlap_read, u8* buf, int index { auto const wait_result = WaitForSingleObject(hid_overlap_read.hEvent, INFINITE); - // In case the event was signalled by _IOWakeup before the read completed, cancel it. + // In case the event was signalled by IOWakeup before the read completed, cancel it. CancelIo(dev_handle); if (WAIT_FAILED == wait_result) @@ -668,7 +662,7 @@ int _IORead(HANDLE &dev_handle, OVERLAPPED &hid_overlap_read, u8* buf, int index void Wiimote::IOWakeup() { - _IOWakeup(m_dev_handle, m_hid_overlap_read); + SetEvent(m_hid_overlap_read.hEvent); }