VOYEUR: Remove redundant code from RL2Decoder class

This commit is contained in:
Paul Gilbert 2014-02-07 20:57:49 -05:00
parent e3b666a27a
commit 26f5475136
2 changed files with 0 additions and 8 deletions

View File

@ -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);

View File

@ -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; }