From 50957c4a21fd9e985c90bd767fcbbb05660af1b8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 23 Dec 2006 09:56:18 +0000 Subject: [PATCH] remove RageSoundManager::GetSoundByID --- stepmania/src/RageSoundManager.cpp | 12 ------------ stepmania/src/RageSoundManager.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index 168643d758..0924e55f6e 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -179,18 +179,6 @@ int RageSoundManager::GetUniqueID() return ++iID; } -RageSound *RageSoundManager::GetSoundByID( int ID ) -{ - LockMut( g_SoundManMutex ); - - /* Find the sound with p.ID. */ - map::iterator it; - it = all_sounds.find( ID ); - if( it == all_sounds.end() ) - return NULL; - return it->second; -} - float RageSoundManager::GetPlayLatency() const { if( m_pDriver == NULL ) diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index cd132ee612..644e1cc595 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -73,8 +73,6 @@ private: /* Prefs: */ float m_fMixVolume; bool m_bPlayOnlyCriticalSounds; - - RageSound *GetSoundByID( int ID ); }; extern RageSoundManager *SOUNDMAN;