mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove unused function SoundSystem::playMusic()
This function was marked as unused by cppcheck.
This commit is contained in:
@@ -59,15 +59,3 @@ SoundSystem::SoundSystem()
|
||||
SDL_assert(0 && "Unable to initialize audio!");
|
||||
}
|
||||
}
|
||||
|
||||
void SoundSystem::playMusic(MusicTrack* music)
|
||||
{
|
||||
if(!music->m_isValid)
|
||||
{
|
||||
fprintf(stderr, "Invalid mix specified: %s\n", Mix_GetError());
|
||||
}
|
||||
if(Mix_PlayMusic(music->m_music, 0) == -1)
|
||||
{
|
||||
fprintf(stderr, "Unable to play Ogg file: %s\n", Mix_GetError());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ class SoundSystem
|
||||
{
|
||||
public:
|
||||
SoundSystem();
|
||||
void playMusic(MusicTrack* music);
|
||||
};
|
||||
|
||||
#endif /* SOUNDSYSTEM_H */
|
||||
|
||||
Reference in New Issue
Block a user