From 2e8fb7e0b6386bfe48c2fceb88724fd4292e7df9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 10 Jul 2003 00:35:46 +0000 Subject: [PATCH] Remove unneeded code; add an assert. --- stepmania/src/LyricsLoader.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/stepmania/src/LyricsLoader.cpp b/stepmania/src/LyricsLoader.cpp index 382818b87f..383d9b71fe 100644 --- a/stepmania/src/LyricsLoader.cpp +++ b/stepmania/src/LyricsLoader.cpp @@ -45,7 +45,8 @@ bool LyricsLoader::LoadFromLRCFile( CString sPath, Song &out ) vector 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 ); }