Removed unused readLine code from the MT-32 emu

svn-id: r34314
This commit is contained in:
Max Horn 2008-09-03 17:46:42 +00:00
parent c3d7c908e8
commit 5c72c2fca7
3 changed files with 0 additions and 9 deletions

View File

@ -96,9 +96,6 @@ public:
size_t read(void *in, size_t size) { size_t read(void *in, size_t size) {
return _in.read(in, size); return _in.read(in, size);
} }
bool readLine(char *in, size_t size) {
return _in.readLine(in, size) != NULL;
}
bool readBit8u(MT32Emu::Bit8u *in) { bool readBit8u(MT32Emu::Bit8u *in) {
byte b = _in.readByte(); byte b = _in.readByte();
if (_in.eof()) if (_in.eof())

View File

@ -44,10 +44,6 @@ namespace MT32Emu {
return fread(in, 1, size, fp); return fread(in, 1, size, fp);
} }
bool ANSIFile::readLine(char *in, size_t size) {
return fgets(in, (int)size, fp) != NULL;
}
bool ANSIFile::readBit8u(Bit8u *in) { bool ANSIFile::readBit8u(Bit8u *in) {
int c = fgetc(fp); int c = fgetc(fp);
if (c == EOF) if (c == EOF)

View File

@ -35,7 +35,6 @@ public:
virtual ~File() {} virtual ~File() {}
virtual void close() = 0; virtual void close() = 0;
virtual size_t read(void *in, size_t size) = 0; virtual size_t read(void *in, size_t size) = 0;
virtual bool readLine(char *in, size_t size) = 0;
virtual bool readBit8u(Bit8u *in) = 0; virtual bool readBit8u(Bit8u *in) = 0;
virtual bool readBit16u(Bit16u *in); virtual bool readBit16u(Bit16u *in);
virtual bool readBit32u(Bit32u *in); virtual bool readBit32u(Bit32u *in);
@ -55,7 +54,6 @@ public:
bool open(const char *filename, OpenMode mode); bool open(const char *filename, OpenMode mode);
void close(); void close();
size_t read(void *in, size_t size); size_t read(void *in, size_t size);
bool readLine(char *in, size_t size);
bool readBit8u(Bit8u *in); bool readBit8u(Bit8u *in);
size_t write(const void *out, size_t size); size_t write(const void *out, size_t size);
bool writeBit8u(Bit8u out); bool writeBit8u(Bit8u out);