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 */