summaryrefslogtreecommitdiff
path: root/src/fios.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fios.cpp')
-rw-r--r--src/fios.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/fios.cpp b/src/fios.cpp
index 37b530cbd..2856c0c5a 100644
--- a/src/fios.cpp
+++ b/src/fios.cpp
@@ -186,19 +186,6 @@ bool FiosDelete(const char *name)
return unlink(filename) == 0;
}
-bool FileExists(const char *filename)
-{
-#if defined(WINCE)
- /* There is always one platform that doesn't support basic commands... */
- HANDLE hand = CreateFile(OTTD2FS(filename), 0, 0, NULL, OPEN_EXISTING, 0, NULL);
- if (hand == INVALID_HANDLE_VALUE) return 1;
- CloseHandle(hand);
- return 0;
-#else
- return access(OTTD2FS(filename), 0) == 0;
-#endif
-}
-
typedef FiosType fios_getlist_callback_proc(SaveLoadDialogMode mode, const char *filename, const char *ext, char *title, const char *last);
/**