PS2: Remove dead code

This commit is contained in:
Max Horn 2011-06-06 16:50:26 +02:00
parent 4f159dba90
commit c5532153c3
2 changed files with 0 additions and 22 deletions

View File

@ -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;
}

View File

@ -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__