mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 11:41:25 +00:00
PS2: Remove dead code
This commit is contained in:
parent
4f159dba90
commit
c5532153c3
@ -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;
|
||||
}
|
||||
|
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user