From c8af2442b61ed564fe5a016c6337308cab436878 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 2 Feb 2017 00:45:41 +0100 Subject: CRYO: Remove an empty function --- engines/cryo/cryolib.cpp | 4 ---- engines/cryo/cryolib.h | 1 - engines/cryo/sound.cpp | 2 -- 3 files changed, 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); -- cgit v1.2.3