aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo
diff options
context:
space:
mode:
authorStrangerke2017-02-02 00:45:41 +0100
committerStrangerke2017-02-02 00:45:41 +0100
commitc8af2442b61ed564fe5a016c6337308cab436878 (patch)
tree0754aeaf1c179da695e19ee95f4d2637c60a3209 /engines/cryo
parentbf989df043079456d7af40183039cf20cb9b84f4 (diff)
downloadscummvm-rg350-c8af2442b61ed564fe5a016c6337308cab436878.tar.gz
scummvm-rg350-c8af2442b61ed564fe5a016c6337308cab436878.tar.bz2
scummvm-rg350-c8af2442b61ed564fe5a016c6337308cab436878.zip
CRYO: Remove an empty function
Diffstat (limited to 'engines/cryo')
-rw-r--r--engines/cryo/cryolib.cpp4
-rw-r--r--engines/cryo/cryolib.h1
-rw-r--r--engines/cryo/sound.cpp2
3 files changed, 0 insertions, 7 deletions
diff --git a/engines/cryo/cryolib.cpp b/engines/cryo/cryolib.cpp
index 133587d7b6..71d80ad0ed 100644
--- a/engines/cryo/cryolib.cpp
+++ b/engines/cryo/cryolib.cpp
@@ -340,7 +340,6 @@ Sound::~Sound() {
}
void CLSoundRaw_AssignBuffer(Sound *sound, void *buffer, int bufferOffs, int length) {
- sound->setLength(length);
sound->_length = length;
char *buf = bufferOffs + (char *)buffer;
// if(CLSound_GetWantsDesigned())
@@ -358,9 +357,6 @@ void Sound::prepareSample(int16 mode) {
void Sound::setWantsDesigned(int16 designed) {
}
-void Sound::setLength(int length) {
-}
-
///// CLSoundChannel
/// sound output device that plays queue of sounds
SoundChannel::SoundChannel(int arg1) {
diff --git a/engines/cryo/cryolib.h b/engines/cryo/cryolib.h
index e2b49338a6..83fdfee236 100644
--- a/engines/cryo/cryolib.h
+++ b/engines/cryo/cryolib.h
@@ -108,7 +108,6 @@ public:
void assignBuffer(void *buffer, int bufferOffs, int length);
void prepareSample(int16 mode);
void setWantsDesigned(int16 designed);
- void setLength(int length);
char *_sndHandle;
char *_buffer;
diff --git a/engines/cryo/sound.cpp b/engines/cryo/sound.cpp
index f3b57de04a..48670912e8 100644
--- a/engines/cryo/sound.cpp
+++ b/engines/cryo/sound.cpp
@@ -143,7 +143,6 @@ bool SoundGroup::assignDatas(void *buffer, int length, bool isSigned) {
Sound *sound = _sounds[_soundIndex];
sound->_buffer = (char *)buffer;
- sound->setLength(length);
sound->_length = length;
// if(sound->reversed && sound->sampleSize == 16)
// ReverseBlock16(buffer, length);
@@ -166,7 +165,6 @@ bool SoundGroup::setDatas(void *data, int length, bool isSigned) {
void *buffer = sound->_sndHandle + sound->_headerLen;
sound->_buffer = (char *)buffer;
memcpy(buffer, data, length);
- sound->setLength(length);
sound->_length = length;
// if(sound->reversed && sound->sampleSize == 16)
// ReverseBlock16(buffer, length);