aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ps2
diff options
context:
space:
mode:
authorMax Horn2011-06-06 16:50:26 +0200
committerMax Horn2011-06-06 16:50:26 +0200
commitc5532153c344e0aa369e888eabad5cfe1e569673 (patch)
treeb68ab4c5c8bcafdcd5006f4b4cf3bf9eeb5e9c2a /backends/platform/ps2
parent4f159dba905cc1c623c99b2adf4d9df18c669dac (diff)
downloadscummvm-rg350-c5532153c344e0aa369e888eabad5cfe1e569673.tar.gz
scummvm-rg350-c5532153c344e0aa369e888eabad5cfe1e569673.tar.bz2
scummvm-rg350-c5532153c344e0aa369e888eabad5cfe1e569673.zip
PS2: Remove dead code
Diffstat (limited to 'backends/platform/ps2')
-rw-r--r--backends/platform/ps2/fileio.cpp20
-rw-r--r--backends/platform/ps2/fileio.h2
2 files changed, 0 insertions, 22 deletions
diff --git a/backends/platform/ps2/fileio.cpp b/backends/platform/ps2/fileio.cpp
index 038cccd9dd..ef01f3a693 100644
--- a/backends/platform/ps2/fileio.cpp
+++ b/backends/platform/ps2/fileio.cpp
@@ -535,23 +535,3 @@ size_t ps2_fwrite(const void *buf, size_t r, size_t n, FILE *stream) {
assert(r != 0);
return ((Ps2File*)stream)->write(buf, r * n) / r;
}
-
-int ps2_fputs(const char *s, FILE *stream) {
- int len = strlen(s);
-
- if (stream == stderr || stream == stdout) {
- printf("%s", s);
- sioprintf("%s", s);
- return len;
- }
-
- if (ps2_fwrite(s, 1, len, stream) == (size_t)len)
- return len;
- else
- return EOF;
-}
-
-int ps2_fflush(FILE *stream) {
- // printf("fflush not implemented\n");
- return 0;
-}
diff --git a/backends/platform/ps2/fileio.h b/backends/platform/ps2/fileio.h
index 3fdee5f1dc..afa2ca1f24 100644
--- a/backends/platform/ps2/fileio.h
+++ b/backends/platform/ps2/fileio.h
@@ -115,10 +115,8 @@ public:
// TODO: Get rid of the following, instead use PS2FileStream directly.
FILE *ps2_fopen(const char *fname, const char *mode);
int ps2_fclose(FILE *stream);
-int ps2_fflush(FILE *stream);
size_t ps2_fread(void *buf, size_t r, size_t n, FILE *stream);
size_t ps2_fwrite(const void *buf, size_t r, size_t n, FILE *stream);
-int ps2_fputs(const char *s, FILE *stream);
#endif // __PS2FILE_IO__