diff --git a/mednafen/FileStream.cpp b/mednafen/FileStream.cpp index 06f2c86..f8a03d4 100644 --- a/mednafen/FileStream.cpp +++ b/mednafen/FileStream.cpp @@ -27,7 +27,6 @@ FileStream::FileStream(const char *path, const int mode) { - OpenedMode = mode; fp = filestream_open(path, (mode == MODE_WRITE) ? RETRO_VFS_FILE_ACCESS_WRITE : RETRO_VFS_FILE_ACCESS_READ, RETRO_VFS_FILE_ACCESS_HINT_NONE); } @@ -35,24 +34,6 @@ FileStream::~FileStream() { } -uint64_t FileStream::attributes(void) -{ - uint64_t ret = ATTRIBUTE_SEEKABLE; - - switch(OpenedMode) - { - case MODE_READ: - ret |= ATTRIBUTE_READABLE; - break; - case MODE_WRITE_SAFE: - case MODE_WRITE: - ret |= ATTRIBUTE_WRITEABLE; - break; - } - - return ret; -} - uint64_t FileStream::read(void *data, uint64_t count, bool error_on_eos) { if (!fp) diff --git a/mednafen/FileStream.h b/mednafen/FileStream.h index 66488b9..8a8ed73 100644 --- a/mednafen/FileStream.h +++ b/mednafen/FileStream.h @@ -30,8 +30,6 @@ class FileStream : public Stream FileStream(const char *path, const int mode); virtual ~FileStream(); - virtual uint64_t attributes(void); - virtual uint64_t read(void *data, uint64_t count, bool error_on_eos = true); virtual void write(const void *data, uint64_t count); virtual void seek(int64_t offset, int whence); @@ -41,7 +39,6 @@ class FileStream : public Stream private: RFILE *fp; - int OpenedMode; }; diff --git a/mednafen/MemoryStream.cpp b/mednafen/MemoryStream.cpp index 36ee7df..55293a8 100644 --- a/mednafen/MemoryStream.cpp +++ b/mednafen/MemoryStream.cpp @@ -66,12 +66,6 @@ MemoryStream::~MemoryStream() } } -uint64 MemoryStream::attributes(void) -{ - return (ATTRIBUTE_READABLE | ATTRIBUTE_WRITEABLE | ATTRIBUTE_SEEKABLE); -} - - uint8 *MemoryStream::map(void) { return data_buffer; diff --git a/mednafen/MemoryStream.h b/mednafen/MemoryStream.h index b407d40..61291d1 100644 --- a/mednafen/MemoryStream.h +++ b/mednafen/MemoryStream.h @@ -39,8 +39,6 @@ class MemoryStream : public Stream virtual ~MemoryStream(); - virtual uint64 attributes(void); - virtual uint8 *map(void); virtual void unmap(void); diff --git a/mednafen/Stream.h b/mednafen/Stream.h index 6904fa8..1814057 100644 --- a/mednafen/Stream.h +++ b/mednafen/Stream.h @@ -21,14 +21,6 @@ class Stream Stream(); virtual ~Stream(); - enum - { - ATTRIBUTE_READABLE = 0, - ATTRIBUTE_WRITEABLE, - ATTRIBUTE_SEEKABLE - }; - virtual uint64 attributes(void) = 0; - virtual uint64 read(void *data, uint64 count, bool error_on_eos = true) = 0; virtual void write(const void *data, uint64 count) = 0;