From 23664ade3390aa55200928a1d4dfe20d2cce4270 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 10 Apr 2007 22:33:58 +0000 Subject: [PATCH] remove GetSongRank, GetCourseRank --- stepmania/src/SongManager.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/stepmania/src/SongManager.cpp b/stepmania/src/SongManager.cpp index ce175c7ffa..3598999296 100644 --- a/stepmania/src/SongManager.cpp +++ b/stepmania/src/SongManager.cpp @@ -1683,23 +1683,6 @@ public: else lua_pushnil(L); return 1; } - static int GetSongRank( T* p, lua_State *L ) - { - Song *pSong = Luna::check(L,1); - const vector apBest = p->GetPopularSongs( ProfileSlot_Machine ); - int iIndex = FindIndex( apBest.begin(), apBest.end(), pSong ); - lua_pushnumber( L, iIndex ); - return 1; - } - static int GetCourseRank( T* p, lua_State *L ) - { - Course *pCourse = Luna::check(L,1); - CourseType ct = PlayModeToCourseType( GAMESTATE->m_PlayMode ); - const vector best = SONGMAN->GetPopularCourses( ct, ProfileSlot_Machine ); - int iIndex = FindCourseIndexOfSameMode( best.begin(), best.end(), pCourse ); - lua_pushnumber( L, iIndex ); - return 1; - } static int GetExtraStageInfo( T* p, lua_State *L ) { @@ -1734,8 +1717,6 @@ public: ADD_METHOD( GetNumAdditionalCourses ); ADD_METHOD( GetNumCourseGroups ); ADD_METHOD( GetSongFromSteps ); - ADD_METHOD( GetSongRank ); - ADD_METHOD( GetCourseRank ); ADD_METHOD( GetExtraStageInfo ); ADD_METHOD( GetSongColor ); }