From 11a58071101d84bc02ac5e9a4e3dee209d0d5df9 Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Sat, 25 Jan 2014 22:55:12 +0100 Subject: BBVS: Remove obsolete code in BbAnt minigame --- engines/bbvs/minigames/bbant.cpp | 21 --------------------- engines/bbvs/minigames/bbant.h | 4 ---- 2 files changed, 25 deletions(-) (limited to 'engines/bbvs/minigames') diff --git a/engines/bbvs/minigames/bbant.cpp b/engines/bbvs/minigames/bbant.cpp index 24dbd45b81..131355622b 100644 --- a/engines/bbvs/minigames/bbant.cpp +++ b/engines/bbvs/minigames/bbant.cpp @@ -1316,25 +1316,4 @@ void MinigameBbAnt::loadSounds() { } } -void MinigameBbAnt::playSound(uint index, bool loop) { - if (index > 0) - _vm->_sound->playSound(index - 1, loop); -} - -void MinigameBbAnt::stopSound(uint index) { - if (index > 0) - _vm->_sound->stopSound(index - 1); -} - -bool MinigameBbAnt::isSoundPlaying(uint index) { - return index > 0 && _vm->_sound->isSoundPlaying(index - 1); -} - -bool MinigameBbAnt::isAnySoundPlaying(const uint *indices, uint count) { - for (uint i = 0; i < count; ++i) - if (isSoundPlaying(indices[i])) - return true; - return false; -} - } // End of namespace Bbvs diff --git a/engines/bbvs/minigames/bbant.h b/engines/bbvs/minigames/bbant.h index b9919ee14b..cdf358f94d 100644 --- a/engines/bbvs/minigames/bbant.h +++ b/engines/bbvs/minigames/bbant.h @@ -165,10 +165,6 @@ public: void scale2x(int x, int y); void loadSounds(); - void playSound(uint index, bool loop = false); - void stopSound(uint index); - bool isSoundPlaying(uint index); - bool isAnySoundPlaying(const uint *indices, uint count); }; -- cgit v1.2.3