[Scummvm-cvs-logs] SF.net SVN: scummvm:[34314] scummvm/trunk/sound/softsynth

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed Sep 3 19:46:45 CEST 2008


Revision: 34314
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34314&view=rev
Author:   fingolfin
Date:     2008-09-03 17:46:42 +0000 (Wed, 03 Sep 2008)

Log Message:
-----------
Removed unused readLine code from the MT-32 emu

Modified Paths:
--------------
    scummvm/trunk/sound/softsynth/mt32/mt32_file.cpp
    scummvm/trunk/sound/softsynth/mt32/mt32_file.h
    scummvm/trunk/sound/softsynth/mt32.cpp

Modified: scummvm/trunk/sound/softsynth/mt32/mt32_file.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/mt32/mt32_file.cpp	2008-09-03 17:39:18 UTC (rev 34313)
+++ scummvm/trunk/sound/softsynth/mt32/mt32_file.cpp	2008-09-03 17:46:42 UTC (rev 34314)
@@ -44,10 +44,6 @@
 		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) {
 		int c = fgetc(fp);
 		if (c == EOF)

Modified: scummvm/trunk/sound/softsynth/mt32/mt32_file.h
===================================================================
--- scummvm/trunk/sound/softsynth/mt32/mt32_file.h	2008-09-03 17:39:18 UTC (rev 34313)
+++ scummvm/trunk/sound/softsynth/mt32/mt32_file.h	2008-09-03 17:46:42 UTC (rev 34314)
@@ -35,7 +35,6 @@
 	virtual ~File() {}
 	virtual void close() = 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 readBit16u(Bit16u *in);
 	virtual bool readBit32u(Bit32u *in);
@@ -55,7 +54,6 @@
 	bool open(const char *filename, OpenMode mode);
 	void close();
 	size_t read(void *in, size_t size);
-	bool readLine(char *in, size_t size);
 	bool readBit8u(Bit8u *in);
 	size_t write(const void *out, size_t size);
 	bool writeBit8u(Bit8u out);

Modified: scummvm/trunk/sound/softsynth/mt32.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/mt32.cpp	2008-09-03 17:39:18 UTC (rev 34313)
+++ scummvm/trunk/sound/softsynth/mt32.cpp	2008-09-03 17:46:42 UTC (rev 34314)
@@ -96,9 +96,6 @@
 	size_t read(void *in, size_t size) {
 		return _in.read(in, size);
 	}
-	bool readLine(char *in, size_t size) {
-		return _in.readLine(in, size) != NULL;
-	}
 	bool readBit8u(MT32Emu::Bit8u *in) {
 		byte b = _in.readByte();
 		if (_in.eof())


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list