diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 4c3b76cddb..333e8d410a 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -923,17 +923,6 @@ int Player::GetClosestNote( int col, int iNoteRow, int iMaxRowsAhead, int iMaxRo return iNextIndex; } -int Player::GetClosestNoteDistance( int col, int row ) const -{ - const int iStepSearchRows = BeatToNoteRow( StepSearchDistance * GAMESTATE->m_fCurBPS * GAMESTATE->m_SongOptions.m_fMusicRate ); - int iIndexOverlappingNote = GetClosestNote( col, row, iStepSearchRows, iStepSearchRows, false ); - - if( iIndexOverlappingNote <= 0 ) - return iIndexOverlappingNote; - return abs( iIndexOverlappingNote - row ); -} - - void Player::Step( int col, const RageTimer &tm, bool bHeld ) { bool bOniDead = diff --git a/stepmania/src/Player.h b/stepmania/src/Player.h index 0bc9b0f20c..bb7fbc94d8 100644 --- a/stepmania/src/Player.h +++ b/stepmania/src/Player.h @@ -70,9 +70,6 @@ public: void SetPaused( bool bPaused ) { m_bPaused = bPaused; } float GetMaxStepDistanceSeconds(); - // Returns -1 if no notes are close, otherwise return the distance to a nongraded note. - int GetClosestNoteDistance( int col, int row ) const; - const NoteData &GetNoteData() const { return m_NoteData; } bool HasNoteField() { return m_pNoteField != NULL; }