mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 20:34:12 +00:00
VOYEUR: Remove redundant code from RL2Decoder class
This commit is contained in:
parent
e3b666a27a
commit
26f5475136
@ -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);
|
||||
|
||||
|
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user