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:
parent
945961c1fb
commit
b3305e4820
2 changed files with 0 additions and 13 deletions
|
@ -59,15 +59,3 @@ SoundSystem::SoundSystem()
|
||||||
SDL_assert(0 && "Unable to initialize audio!");
|
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:
|
public:
|
||||||
SoundSystem();
|
SoundSystem();
|
||||||
void playMusic(MusicTrack* music);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* SOUNDSYSTEM_H */
|
#endif /* SOUNDSYSTEM_H */
|
||||||
|
|
Loading…
Reference in a new issue