aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ps2
diff options
context:
space:
mode:
authorMax Horn2009-11-23 22:29:39 +0000
committerMax Horn2009-11-23 22:29:39 +0000
commit3d342bec3c099039efe2452b08ea525002eac7b2 (patch)
treeac14cb008910caf655ab310d5e930880daaeafa2 /backends/platform/ps2
parentf3c6e07feb97d6d7946ebaab0d27407722ca30af (diff)
downloadscummvm-rg350-3d342bec3c099039efe2452b08ea525002eac7b2.tar.gz
scummvm-rg350-3d342bec3c099039efe2452b08ea525002eac7b2.tar.bz2
scummvm-rg350-3d342bec3c099039efe2452b08ea525002eac7b2.zip
PS2 & NDS: Remove ps2_fprintf and some useless typedefs and #defines; use fputs instead of fprintf
svn-id: r46107
Diffstat (limited to 'backends/platform/ps2')
-rw-r--r--backends/platform/ps2/fileio.cpp16
-rw-r--r--backends/platform/ps2/fileio.h1
2 files changed, 0 insertions, 17 deletions
diff --git a/backends/platform/ps2/fileio.cpp b/backends/platform/ps2/fileio.cpp
index b0c3ce68e4..047992b13d 100644
--- a/backends/platform/ps2/fileio.cpp
+++ b/backends/platform/ps2/fileio.cpp
@@ -508,22 +508,6 @@ int ps2_fputs(const char *s, FILE *stream) {
return EOF;
}
-int ps2_fprintf(FILE *pOut, const char *zFormat, ...) {
- va_list ap;
- char resStr[2048];
-
- va_start(ap,zFormat);
- int res = vsnprintf(resStr, 2048, zFormat, ap);
- va_end(ap);
- if ((pOut == stderr) || (pOut == stdout)) {
- printf("%s", resStr);
- sioprintf("%s", resStr);
- } else
- res = ps2_fwrite(resStr, 1, res, pOut);
-
- return res;
-}
-
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 e3b1a98db9..ce470cebd1 100644
--- a/backends/platform/ps2/fileio.h
+++ b/backends/platform/ps2/fileio.h
@@ -97,7 +97,6 @@ char *ps2_fgets(char *buf, int n, FILE *stream);
size_t ps2_fwrite(const void *buf, size_t r, size_t n, FILE *stream);
int ps2_fputc(int c, FILE *stream);
int ps2_fputs(const char *s, FILE *stream);
-int ps2_fprintf(FILE *pOut, const char *zFormat, ...);
int ps2_ferror(FILE *stream);
void ps2_clearerr(FILE *stream);