From 363534a0460c07985a0d901d41f9ed8ee160156d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 2 May 2004 00:12:31 +0000 Subject: [PATCH] remove Song::GetNumNotesWithGrade --- stepmania/src/Song.cpp | 15 --------------- stepmania/src/song.h | 1 - 2 files changed, 16 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 5e65b5acd8..1d62d171b9 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1281,21 +1281,6 @@ void Song::RemoveNotes( const Steps* pNotes ) AddAutoGenNotes(); } -int Song::GetNumNotesWithGrade( Grade g ) const -{ - int iCount = 0; - vector vNotes; - this->GetSteps( vNotes, GAMESTATE->GetCurrentStyleDef()->m_StepsType ); - for( unsigned j=0; jGetMachineProfile()->GetStepsHighScoreList(this,pSteps).GetTopScore().grade == g ) - iCount++; - } - return iCount; -} - bool Song::Matches(CString sGroup, CString sSong) const { if( sGroup.size() && sGroup.CompareNoCase(this->m_sGroupName) != 0) diff --git a/stepmania/src/song.h b/stepmania/src/song.h index 31b120da53..06df00d02c 100644 --- a/stepmania/src/song.h +++ b/stepmania/src/song.h @@ -197,7 +197,6 @@ public: bool NormallyDisplayed() const { return GetDisplayed() == SHOW_ALWAYS; } bool NeverDisplayed() const { return GetDisplayed() == SHOW_NEVER; } bool RouletteDisplayed() const { return GetDisplayed() != SHOW_NEVER; } - int GetNumNotesWithGrade( Grade g ) const; void AddNotes( Steps* pNotes ); // we are responsible for deleting the memory pointed to by pNotes! void RemoveNotes( const Steps* pNotes );