Remove unneeded code; add an assert.

This commit is contained in:
Glenn Maynard
2003-07-10 00:35:46 +00:00
parent f2398eb9a6
commit 2e8fb7e0b6
+2 -7
View File
@@ -45,7 +45,8 @@ bool LyricsLoader::LoadFromLRCFile( CString sPath, Song &out )
vector<CString> matches;
if(!x.Compare(line, matches))
continue;
ASSERT( matches.size() == 2 );
CString &sValueName = matches[0];
CString &sValueData = matches[1];
StripCrnl(sValueData);
@@ -76,12 +77,6 @@ bool LyricsLoader::LoadFromLRCFile( CString sPath, Song &out )
seg.m_fStartTime = TimeToSeconds(sValueName);
seg.m_sLyric = sValueData;
/* Er, huh? This won't do anything (replace \ with \). What's wrong
* with using \ in lyrics? */
seg.m_sLyric.Replace( "\\", "\\" ); // to avoid possible screw-ups
// if someone uses a \ for whatever
// reason in their lyrics -- Miryokuteki
seg.m_sLyric.Replace( "|","\n" ); // Pipe symbols denote a new line in LRC files
out.AddLyricSegment( seg );
}