diff options
author | Filippos Karapetis | 2008-11-23 15:44:47 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-11-23 15:44:47 +0000 |
commit | f53429b1b7a57ed31d22566d06abbd661195059a (patch) | |
tree | c49f6430fa0b102aa1ba74b6a028a44896dc0725 /engines | |
parent | bd3f83b508981dc3be8c450f678c2dc46a33f01c (diff) | |
download | scummvm-rg350-f53429b1b7a57ed31d22566d06abbd661195059a.tar.gz scummvm-rg350-f53429b1b7a57ed31d22566d06abbd661195059a.tar.bz2 scummvm-rg350-f53429b1b7a57ed31d22566d06abbd661195059a.zip |
Removed unused/dead code
svn-id: r35161
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/file.cpp | 7 | ||||
-rw-r--r-- | engines/scumm/file.h | 18 | ||||
-rw-r--r-- | engines/scumm/file_nes.h | 6 |
3 files changed, 26 insertions, 5 deletions
diff --git a/engines/scumm/file.cpp b/engines/scumm/file.cpp index 38c7a1a180..87b059be3b 100644 --- a/engines/scumm/file.cpp +++ b/engines/scumm/file.cpp @@ -124,10 +124,12 @@ bool ScummFile::openSubFile(const Common::String &filename) { return false; } - +// Unused +#if 0 bool ScummFile::eos() const { return _subFileLen ? (pos() >= _subFileLen) : File::eos(); // FIXME } +#endif int32 ScummFile::pos() const { return File::pos() - _subFileStart; @@ -157,6 +159,8 @@ bool ScummFile::seek(int32 offs, int whence) { return File::seek(offs, whence); } +// Unused +#if 0 uint32 ScummFile::read(void *dataPtr, uint32 dataSize) { uint32 realLen; @@ -186,6 +190,7 @@ uint32 ScummFile::read(void *dataPtr, uint32 dataSize) { return realLen; } +#endif #pragma mark - #pragma mark --- ScummDiskImage --- diff --git a/engines/scumm/file.h b/engines/scumm/file.h index e0ba7badff..b4228f2d7a 100644 --- a/engines/scumm/file.h +++ b/engines/scumm/file.h @@ -39,11 +39,15 @@ public: virtual bool open(const Common::String &filename) = 0; virtual bool openSubFile(const Common::String &filename) = 0; - virtual bool eos() const = 0; virtual int32 pos() const = 0; virtual int32 size() const = 0; virtual bool seek(int32 offs, int whence = SEEK_SET) = 0; + +// Unused +#if 0 + virtual bool eos() const = 0; virtual uint32 read(void *dataPtr, uint32 dataSize) = 0; +#endif }; class ScummFile : public BaseScummFile { @@ -66,11 +70,15 @@ public: bool ioFailed() const { return _myIoFailed || BaseScummFile::ioFailed(); } void clearIOFailed() { _myIoFailed = false; BaseScummFile::clearIOFailed(); } - bool eos() const; int32 pos() const; int32 size() const; bool seek(int32 offs, int whence = SEEK_SET); + +// Unused +#if 0 + bool eos() const; uint32 read(void *dataPtr, uint32 dataSize); +#endif }; class ScummDiskImage : public BaseScummFile { @@ -111,11 +119,15 @@ public: bool openSubFile(const Common::String &filename); void close(); - bool eos() const { return _stream->eos(); } int32 pos() const { return _stream->pos(); } int32 size() const { return _stream->size(); } bool seek(int32 offs, int whence = SEEK_SET) { return _stream->seek(offs, whence); } + +// Unused +#if 0 + bool eos() const { return _stream->eos(); } uint32 read(void *dataPtr, uint32 dataSize) { return _stream->read(dataPtr, dataSize); } +#endif }; } // End of namespace Scumm diff --git a/engines/scumm/file_nes.h b/engines/scumm/file_nes.h index b255705922..20d82376bd 100644 --- a/engines/scumm/file_nes.h +++ b/engines/scumm/file_nes.h @@ -88,11 +88,15 @@ public: bool openSubFile(const Common::String &filename); void close(); - bool eos() const { return _stream->eos(); } int32 pos() const { return _stream->pos(); } int32 size() const { return _stream->size(); } bool seek(int32 offs, int whence = SEEK_SET) { return _stream->seek(offs, whence); } + +// Unused +#if 0 + bool eos() const { return _stream->eos(); } uint32 read(void *dataPtr, uint32 dataSize) { return _stream->read(dataPtr, dataSize); } +#endif }; } // End of namespace Scumm |