diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index 5088c78e31..8de762293a 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -243,24 +243,6 @@ RageSound *RageSoundManager::PlaySound( RageSound &snd, const RageSoundParams *p return sound_to_play; } -/* Stop playing all playing sounds derived from the same parent as snd. */ -void RageSoundManager::StopPlayingAllCopiesOfSound(RageSound &snd) -{ - g_DeletionMutex.Lock(); - - vector snds; - GetCopies( snd, snds ); - - vector::iterator it; - for( it = snds.begin(); it != snds.end(); ++it ) - { - if( (*it)->IsPlaying() ) - (*it)->StopPlaying(); - } - - g_DeletionMutex.Unlock(); -} - /* XXX: If this is ever called from a thread, it should take a bLockSounds parameter, * like GetCopies. */ set RageSoundManager::GetPlayingSounds() const diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index 38dc7fc2a7..6b73719735 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -61,7 +61,6 @@ public: void PlayOnce( CString sPath ); RageSound *PlaySound( RageSound &snd, const RageSoundParams *params ); - void StopPlayingAllCopiesOfSound(RageSound &snd); void GetCopies( RageSound &snd, vector &snds, bool bLockSounds=false );