CachedObjectPointer<Song> for StepsID

This commit is contained in:
Glenn Maynard
2007-08-12 22:13:25 +00:00
parent 66b6b168bb
commit 019ca31c0b
6 changed files with 21 additions and 29 deletions
-4
View File
@@ -319,8 +319,6 @@ bool Song::ReloadFromSongDir( RString sDir )
{
// This stepchart didn't exist in the file we reverted from
delete *itOld;
// TODO: We should move the cache from StepsUtil to Song
StepsID::ClearCache();
}
else
{
@@ -1233,8 +1231,6 @@ void Song::DeleteSteps( const Steps* pSteps, bool bReAutoGen )
{
delete m_vpSteps[j];
m_vpSteps.erase( m_vpSteps.begin()+j );
// TODO: We should move the cache from StepsUtil to Song
StepsID::ClearCache();
break;
}
}