Removed __PHYSFS_platformEOF(). It's not used anymore.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 01 Aug 2011 17:32:56 -0400
changeset 1176 367c1f9a996c
parent 1174 f1779b4948bd
child 1180 b463fbb66af9
Removed __PHYSFS_platformEOF(). It's not used anymore.
src/physfs_internal.h
src/platform_os2.c
src/platform_pocketpc.c
src/platform_posix.c
src/platform_windows.c
--- a/src/physfs_internal.h	Mon Jul 25 11:32:32 2011 -0700
+++ b/src/physfs_internal.h	Mon Aug 01 17:32:56 2011 -0400
@@ -1199,17 +1199,6 @@
  */
 int __PHYSFS_platformStat(const char *fn, int *exists, PHYSFS_Stat *stat);
 
-
-/*
- * Determine if a file is at EOF. (opaque) should be cast to whatever data
- *  type your platform uses.
- *
- * The caller expects that there was a short read before calling this.
- *
- * Return non-zero if EOF, zero if it is _not_ EOF.
- */
-int __PHYSFS_platformEOF(void *opaque);
-
 /*
  * Flush any pending writes to disk. (opaque) should be cast to whatever data
  *  type your platform uses. Be sure to check for errors; the caller expects
--- a/src/platform_os2.c	Mon Jul 25 11:32:32 2011 -0700
+++ b/src/platform_os2.c	Mon Aug 01 17:32:56 2011 -0400
@@ -543,19 +543,6 @@
 } /* __PHYSFS_platformFileLength */
 
 
-int __PHYSFS_platformEOF(void *opaque)
-{
-    PHYSFS_sint64 len, pos;
-
-    len = __PHYSFS_platformFileLength(opaque);
-    BAIL_IF_MACRO(len == -1, NULL, 1);  /* (*shrug*) */
-    pos = __PHYSFS_platformTell(opaque);
-    BAIL_IF_MACRO(pos == -1, NULL, 1);  /* (*shrug*) */
-
-    return (pos >= len);
-} /* __PHYSFS_platformEOF */
-
-
 int __PHYSFS_platformFlush(void *opaque)
 {
     return (os2err(DosResetBuffer((HFILE) opaque)) == NO_ERROR);
--- a/src/platform_pocketpc.c	Mon Jul 25 11:32:32 2011 -0700
+++ b/src/platform_pocketpc.c	Mon Aug 01 17:32:56 2011 -0400
@@ -445,22 +445,6 @@
 } /* __PHYSFS_platformFileLength */
 
 
-int __PHYSFS_platformEOF(void *opaque)
-{
-    PHYSFS_sint64 FilePosition;
-    int retval = 0;
-
-    /* Get the current position in the file */
-    if ((FilePosition = __PHYSFS_platformTell(opaque)) != 0)
-    {
-        /* Non-zero if EOF is equal to the file length */
-        retval = FilePosition == __PHYSFS_platformFileLength(opaque);
-    } /* if */
-
-    return retval;
-} /* __PHYSFS_platformEOF */
-
-
 int __PHYSFS_platformFlush(void *opaque)
 {
     winCEfile *fh = ((winCEfile *) opaque);
--- a/src/platform_posix.c	Mon Jul 25 11:32:32 2011 -0700
+++ b/src/platform_posix.c	Mon Aug 01 17:32:56 2011 -0400
@@ -362,14 +362,6 @@
 } /* __PHYSFS_platformFileLength */
 
 
-int __PHYSFS_platformEOF(void *opaque)
-{
-    const PHYSFS_sint64 pos = __PHYSFS_platformTell(opaque);
-    const PHYSFS_sint64 len = __PHYSFS_platformFileLength(opaque);
-    return (pos >= len);
-} /* __PHYSFS_platformEOF */
-
-
 int __PHYSFS_platformFlush(void *opaque)
 {
     const int fd = *((int *) opaque);
--- a/src/platform_windows.c	Mon Jul 25 11:32:32 2011 -0700
+++ b/src/platform_windows.c	Mon Aug 01 17:32:56 2011 -0400
@@ -1088,22 +1088,6 @@
 } /* __PHYSFS_platformFileLength */
 
 
-int __PHYSFS_platformEOF(void *opaque)
-{
-    PHYSFS_sint64 FilePosition;
-    int retval = 0;
-
-    /* Get the current position in the file */
-    if ((FilePosition = __PHYSFS_platformTell(opaque)) != 0)
-    {
-        /* Non-zero if EOF is equal to the file length */
-        retval = FilePosition == __PHYSFS_platformFileLength(opaque);
-    } /* if */
-
-    return retval;
-} /* __PHYSFS_platformEOF */
-
-
 int __PHYSFS_platformFlush(void *opaque)
 {
     WinApiFile *fh = ((WinApiFile *) opaque);