aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-06-06 16:55:18 +0200
committerMax Horn2011-06-06 16:55:18 +0200
commit8d77d8cf1c4de7d9589f3f14492bdc26464ac0f9 (patch)
tree8817b790c260eb2858d78194a507196c757eb55f
parentc5532153c344e0aa369e888eabad5cfe1e569673 (diff)
downloadscummvm-rg350-8d77d8cf1c4de7d9589f3f14492bdc26464ac0f9.tar.gz
scummvm-rg350-8d77d8cf1c4de7d9589f3f14492bdc26464ac0f9.tar.bz2
scummvm-rg350-8d77d8cf1c4de7d9589f3f14492bdc26464ac0f9.zip
DS: Remove dead code
-rw-r--r--backends/fs/ds/ds-fs.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/backends/fs/ds/ds-fs.cpp b/backends/fs/ds/ds-fs.cpp
index a038889677..e3f282df05 100644
--- a/backends/fs/ds/ds-fs.cpp
+++ b/backends/fs/ds/ds-fs.cpp
@@ -602,35 +602,11 @@ size_t std_fread(void *ptr, size_t size, size_t numItems, FILE *handle) {
}
size_t std_fwrite(const void *ptr, size_t size, size_t numItems, FILE *handle) {
- if ((handle == stdin))
- return 0;
-
- if ((handle == stderr) || (handle == stdout)) {
-#ifndef DISABLE_TEXT_CONSOLE
- nocashMessage((char *)ptr);
-// consolePrintf((char *)ptr);
-#endif
- return size;
- }
-
//consolePrintf("fwrite size=%d\n", size * numItems);
if (DS::isGBAMPAvailable()) {
FAT_fwrite(ptr, size, numItems, (FAT_FILE *) handle);
return numItems;
-
- int length = size * numItems;
- int pos = 0;
-
- while (pos < length) {
- int amount = length > 512? 512: length;
-
- FAT_fwrite(((char *) (ptr)) + pos, 1, amount, (FAT_FILE *) handle);
- length -= amount;
- pos += amount;
- }
-
- return numItems;
}
return 0;