From 0efe680c706f008b428495dd47e232b72ca1dbb7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 15 Jan 2005 03:22:51 +0000 Subject: [PATCH] unused function --- stepmania/src/SongUtil.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/stepmania/src/SongUtil.cpp b/stepmania/src/SongUtil.cpp index 800b55ad16..0d0a1d2709 100644 --- a/stepmania/src/SongUtil.cpp +++ b/stepmania/src/SongUtil.cpp @@ -74,29 +74,6 @@ void SongUtil::SortSongPointerArrayByTitle( vector &arraySongPointers ) sort( arraySongPointers.begin(), arraySongPointers.end(), CompareSongPointersByTitle ); } -static int GetSongSortDifficulty(const Song *pSong) -{ - vector aNotes; - pSong->GetSteps( aNotes, GAMESTATE->GetCurrentStyle()->m_StepsType ); - - /* Sort by the first difficulty found in the following order: */ - const Difficulty d[] = { DIFFICULTY_EASY, DIFFICULTY_MEDIUM, DIFFICULTY_HARD, - DIFFICULTY_CHALLENGE, DIFFICULTY_INVALID }; - - for(int i = 0; d[i] != DIFFICULTY_INVALID; ++i) - { - for( unsigned j = 0; j < aNotes.size(); ++j) - { - if(aNotes[j]->GetDifficulty() != d[i]) - continue; - - return aNotes[j]->GetMeter(); - } - } - - return 1; -} - bool CompareSongPointersByBPM(const Song *pSong1, const Song *pSong2) { DisplayBpms bpms1, bpms2;