aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-12-09 16:45:20 +0100
committerEinar Johan Trøan Sømåen2012-12-09 16:45:20 +0100
commit9bd16b80c943eb115a1bb6e6c4a6e78d2e2bfeee (patch)
treed38b2728b0320900df61d85b39a897a573ea09e7 /engines/wintermute
parent6bde2926c1834bf90865d3a112dbe29de97ca35f (diff)
downloadscummvm-rg350-9bd16b80c943eb115a1bb6e6c4a6e78d2e2bfeee.tar.gz
scummvm-rg350-9bd16b80c943eb115a1bb6e6c4a6e78d2e2bfeee.tar.bz2
scummvm-rg350-9bd16b80c943eb115a1bb6e6c4a6e78d2e2bfeee.zip
WINTERMUTE: Remove code moved in previous commit.
Diffstat (limited to 'engines/wintermute')
-rw-r--r--engines/wintermute/base/base_game.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp
index e5e3472572..056bc9688a 100644
--- a/engines/wintermute/base/base_game.cpp
+++ b/engines/wintermute/base/base_game.cpp
@@ -40,7 +40,6 @@
#include "engines/wintermute/base/base_keyboard_state.h"
#include "engines/wintermute/base/base_parser.h"
#include "engines/wintermute/base/base_quick_msg.h"
-#include "engines/wintermute/base/sound/base_sound.h"
#include "engines/wintermute/base/sound/base_sound_manager.h"
#include "engines/wintermute/base/base_sprite.h"
#include "engines/wintermute/base/base_sub_frame.h"
@@ -1089,25 +1088,6 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack
}
//////////////////////////////////////////////////////////////////////////
- // GetSoundLength
- //////////////////////////////////////////////////////////////////////////
- else if (strcmp(name, "GetSoundLength") == 0) {
- stack->correctParams(1);
-
- int length = 0;
- const char *filename = stack->pop()->getString();
-
- BaseSound *sound = new BaseSound(_gameRef);
- if (sound && DID_SUCCEED(sound->setSound(filename, Audio::Mixer::kMusicSoundType, true))) {
- length = sound->getLength();
- delete sound;
- sound = NULL;
- }
- stack->pushInt(length);
- return STATUS_OK;
- }
-
- //////////////////////////////////////////////////////////////////////////
// SetMousePos
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "SetMousePos") == 0) {