From 2a92bc832a9fd109dbe4cbd214273ef54aaf6677 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 13 Nov 2004 21:01:09 +0000 Subject: [PATCH] remove commonSubstrLen; clearer to just size() each time, and it's only used in a few places --- stepmania/src/NotesLoaderBMS.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/stepmania/src/NotesLoaderBMS.cpp b/stepmania/src/NotesLoaderBMS.cpp index decaada6a1..33c73b1b5b 100644 --- a/stepmania/src/NotesLoaderBMS.cpp +++ b/stepmania/src/NotesLoaderBMS.cpp @@ -906,10 +906,6 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out ) } // Yay, we have our substring. (something like "LION SUKI") - // This is used a LOT, so let's just declare it here and get it - // over with. - unsigned commonSubstrLen = commonSubstring.size(); - /* Create a Steps for each. */ vector apSteps; for( unsigned i=0; iSetDifficulty( DIFFICULTY_MEDIUM ); CString sTag; - if( GetTagFromMap( aBMSData[i], "#title", sTag ) && sTag.size() != commonSubstrLen ) + if( GetTagFromMap( aBMSData[i], "#title", sTag ) && sTag.size() != commonSubstring.size() ) { - sTag = sTag.substr( commonSubstrLen, sTag.size() - commonSubstrLen ); + sTag = sTag.substr( commonSubstring.size(), sTag.size() - commonSubstring.size() ); sTag.ToLower(); // XXX: Someone find me some DDR BMS examples!