diff options
author | Paul Gilbert | 2014-02-07 20:57:49 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-02-07 20:57:49 -0500 |
commit | 26f5475136143a5ea88b767d4f5206e4931b1e73 (patch) | |
tree | 5657a455ba45bc1e7113491d9014fed0a4b4e18a | |
parent | e3b666a27a9fa09705d03b50ba7382c01d305c5b (diff) | |
download | scummvm-rg350-26f5475136143a5ea88b767d4f5206e4931b1e73.tar.gz scummvm-rg350-26f5475136143a5ea88b767d4f5206e4931b1e73.tar.bz2 scummvm-rg350-26f5475136143a5ea88b767d4f5206e4931b1e73.zip |
VOYEUR: Remove redundant code from RL2Decoder class
-rw-r--r-- | engines/voyeur/animation.cpp | 5 | ||||
-rw-r--r-- | engines/voyeur/animation.h | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/engines/voyeur/animation.cpp b/engines/voyeur/animation.cpp index 301c8d1c43..c7522e6b20 100644 --- a/engines/voyeur/animation.cpp +++ b/engines/voyeur/animation.cpp @@ -163,7 +163,6 @@ void RL2Decoder::RL2FileHeader::load(Common::SeekableReadStream *stream) { _form = stream->readUint32LE(); _backSize = stream->readUint32LE(); _signature = stream->readUint32LE(); - _isRLV3 = !strncmp((const char *)&_signature, "RLV3", 4); if (!isValid()) return; @@ -244,10 +243,6 @@ void RL2Decoder::RL2VideoTrack::initBackSurface() { _backSurface->create(320, 200, Graphics::PixelFormat::createFormatCLUT8()); } -bool RL2Decoder::RL2VideoTrack::endOfTrack() const { - return getCurFrame() >= getFrameCount(); -} - bool RL2Decoder::RL2VideoTrack::seek(const Audio::Timestamp &time) { int frame = getFrameAtTime(time); diff --git a/engines/voyeur/animation.h b/engines/voyeur/animation.h index 43dd6a02b1..96c283510e 100644 --- a/engines/voyeur/animation.h +++ b/engines/voyeur/animation.h @@ -63,7 +63,6 @@ private: uint32 *_frameOffsets; int *_frameSoundSizes; - bool _isRLV3; public: RL2FileHeader(); ~RL2FileHeader(); @@ -106,8 +105,6 @@ private: Common::SeekableReadStream *stream); ~RL2VideoTrack(); - bool endOfTrack() const; - uint16 getWidth() const; uint16 getHeight() const; Graphics::Surface *getSurface() { return _surface; } |