diff --git a/stepmania/src/InputFilter.cpp b/stepmania/src/InputFilter.cpp index 7f47584f3b..580a4c3665 100644 --- a/stepmania/src/InputFilter.cpp +++ b/stepmania/src/InputFilter.cpp @@ -90,8 +90,13 @@ InputFilter::~InputFilter() void InputFilter::Reset() { - for( int i=0; idevice, di->button, -1, now), false ); } void InputFilter::SetRepeatRate( float fSlowDelay, float fFastDelay, float fRepeatRate ) @@ -150,22 +155,6 @@ void InputFilter::SetButtonComment( const DeviceInput &di, const RString &sComme bs.m_sComment = sComment; } -/* Release all buttons on the given device. */ -void InputFilter::ResetDevice( InputDevice device ) -{ - LockMut(*queuemutex); - RageTimer now; - - vector DeviceInputs; - GetPressedButtons( DeviceInputs ); - - FOREACH( DeviceInput, DeviceInputs, di ) - { - if( di->device == device ) - ButtonPressed( DeviceInput(device, di->button, -1, now), false ); - } -} - /* Check for reportable presses. */ void InputFilter::CheckButtonChange( ButtonState &bs, DeviceInput di, const RageTimer &now ) { diff --git a/stepmania/src/InputFilter.h b/stepmania/src/InputFilter.h index 7f3f640d4f..12e157b432 100644 --- a/stepmania/src/InputFilter.h +++ b/stepmania/src/InputFilter.h @@ -44,7 +44,6 @@ class InputFilter public: void ButtonPressed( const DeviceInput &di, bool Down ); void SetButtonComment( const DeviceInput &di, const RString &sComment = "" ); - void ResetDevice( InputDevice dev ); InputFilter(); ~InputFilter();