From 984bba5326891375290c0fb9555bdd267f512df4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 18 Jan 2007 07:36:47 +0000 Subject: [PATCH] remove unused --- stepmania/src/RageSoundManager.cpp | 9 --------- stepmania/src/RageSoundManager.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index 07a49f5bd7..b02a6c2194 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -199,15 +199,6 @@ RageSound *RageSoundManager::PlayCopyOfSound( RageSound &snd, const RageSoundPar return pSound; } -void RageSoundManager::DeleteSound( RageSound *pSound ) -{ - /* Stop playing the sound. */ - pSound->StopPlaying(); - - /* We might be in a thread, so don't delete it here. */ - DeleteSoundWhenFinished( pSound ); -} - void RageSoundManager::DeleteSoundWhenFinished( RageSound *pSound ) { g_SoundManMutex.Lock(); /* lock for access to owned_sounds */ diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index 1698b3cd8d..d763ef2bd7 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -42,9 +42,6 @@ public: float GetPlayLatency() const; int GetDriverSampleRate() const; - /* When deleting a sound from any thread except the one calling Update(), this - * must be used to prevent race conditions. */ - void DeleteSound( RageSound *pSound ); void DeleteSoundWhenFinished( RageSound *pSound ); RageSoundReader *GetLoadedSound( const RString &sPath );