Browse Source

Remove an obsolete workaround for a Windows bug in physfs 2.0.2.

--HG--
branch : minor
Alex Szpakowski 5 years ago
parent
commit
c2ccb56117
1 changed files with 1 additions and 18 deletions
  1. 1 18
      src/modules/filesystem/physfs/File.cpp

+ 1 - 18
src/modules/filesystem/physfs/File.cpp

@@ -195,26 +195,9 @@ bool File::flush()
 	return PHYSFS_flush(file) != 0;
 }
 
-#ifdef LOVE_WINDOWS
-// MSVC doesn't like the 'this' keyword
-// well, we'll use 'that'.
-// It zigs, we zag.
-inline bool test_eof(File *that, PHYSFS_File *)
-{
-	int64 pos = that->tell();
-	int64 size = that->getSize();
-	return pos == -1 || size == -1 || pos >= size;
-}
-#else
-inline bool test_eof(File *, PHYSFS_File *file)
-{
-	return PHYSFS_eof(file);
-}
-#endif
-
 bool File::isEOF()
 {
-	return file == nullptr || test_eof(this, file);
+	return file == nullptr || PHYSFS_eof(file);
 }
 
 int64 File::tell()