From cfce75513f4399f701864159ae92aec5d066420c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 31 May 2007 02:49:18 +0000 Subject: [PATCH] remove unused Player::IsPlayingBeginner --- stepmania/src/Player.cpp | 17 ----------------- stepmania/src/Player.h | 1 - 2 files changed, 18 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index d56729c32a..9003aea374 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -2611,23 +2611,6 @@ void Player::CacheAllUsedNoteSkins() m_pNoteField->CacheAllUsedNoteSkins(); } -bool Player::IsPlayingBeginner() const -{ - if( m_pPlayerStageStats != NULL && !m_pPlayerStageStats->m_vpPossibleSteps.empty() ) - { - Steps *pSteps = m_pPlayerStageStats->m_vpPossibleSteps[0]; - return pSteps->GetDifficulty() == Difficulty_Beginner; - } - - if( m_pPlayerState == NULL ) - return false; - - if( m_pPlayerState->m_PlayerNumber == PLAYER_INVALID ) - return false; - Steps *pSteps = GAMESTATE->m_pCurSteps[ m_pPlayerState->m_PlayerNumber ]; - return pSteps && pSteps->GetDifficulty() == Difficulty_Beginner; -} - void Player::SetJudgment( TapNoteScore tns, float fTapNoteOffset ) { Message msg("Judgment"); diff --git a/stepmania/src/Player.h b/stepmania/src/Player.h index aeb0e3acf7..e8f69f31e3 100644 --- a/stepmania/src/Player.h +++ b/stepmania/src/Player.h @@ -131,7 +131,6 @@ protected: int GetClosestNonEmptyRowDirectional( int iStartRow, int iMaxRowsAhead, bool bAllowGraded, bool bForward ) const; int GetClosestNonEmptyRow( int iNoteRow, int iMaxRowsAhead, int iMaxRowsBehind, bool bAllowGraded ) const; - bool IsPlayingBeginner() const; inline void HideNote( int col, int row ) { NoteData::iterator iter = m_NoteData.FindTapNote( col, row );