mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
WiimoteEmu: Remove Spy method
This is the only use for a lot of unused methods and structs, and it's a poorly written mess that doesn't even compile. Just remove it so we can clean up the rest of a lot of code.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -756,7 +756,6 @@ void Wiimote::Update()
|
||||
// send data report
|
||||
if (rptf_size)
|
||||
{
|
||||
WiimoteEmu::Spy(this, data, rptf_size);
|
||||
Core::Callback_WiimoteInterruptChannel(m_index, m_reporting_channel, data, rptf_size);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,6 @@ inline double trim(double a)
|
||||
class Wiimote : public ControllerEmu
|
||||
{
|
||||
friend class WiimoteReal::Wiimote;
|
||||
friend void Spy(Wiimote* wm_, const void* data_, size_t size_);
|
||||
public:
|
||||
|
||||
enum
|
||||
@@ -234,6 +233,4 @@ private:
|
||||
#pragma pack(pop)
|
||||
};
|
||||
|
||||
void Spy(Wiimote* wm_, const void* data_, size_t size_);
|
||||
|
||||
}
|
||||
|
||||
@@ -661,8 +661,6 @@ int _IORead(HANDLE &dev_handle, OVERLAPPED &hid_overlap_read, u8* buf, int index
|
||||
}
|
||||
}
|
||||
|
||||
WiimoteEmu::Spy(nullptr, buf, bytes + 1);
|
||||
|
||||
return bytes + 1;
|
||||
}
|
||||
|
||||
@@ -683,8 +681,6 @@ int Wiimote::IORead(u8* buf)
|
||||
|
||||
int _IOWrite(HANDLE &dev_handle, OVERLAPPED &hid_overlap_write, enum win_bt_stack_t &stack, const u8* buf, size_t len, DWORD* written)
|
||||
{
|
||||
WiimoteEmu::Spy(nullptr, buf, len);
|
||||
|
||||
switch (stack)
|
||||
{
|
||||
case MSBT_STACK_UNKNOWN:
|
||||
|
||||
Reference in New Issue
Block a user