1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Remove unused function SoundSystem::playMusic()

This function was marked as unused by cppcheck.
This commit is contained in:
Misa 2021-01-02 00:23:45 -08:00 committed by Ethan Lee
parent 945961c1fb
commit b3305e4820
2 changed files with 0 additions and 13 deletions

View file

@ -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());
}
}

View file

@ -23,7 +23,6 @@ class SoundSystem
{
public:
SoundSystem();
void playMusic(MusicTrack* music);
};
#endif /* SOUNDSYSTEM_H */