Remove unused functions and variables in platform_windows.
authorDavid Yip <dwyip@peach-bun.com>
Mon, 15 Aug 2016 05:41:36 -0500
changeset 1376 e1f788a76b86
parent 1375 20ee02ea086c
child 1377 67031168b061
Remove unused functions and variables in platform_windows. Under gcc 5.3.0, the presence of these functions and variables generate unused function / unused variable warnings, which in combination with -Werror causes a compile error.
src/platform_windows.c
--- a/src/platform_windows.c	Mon Aug 15 00:50:58 2016 -0500
+++ b/src/platform_windows.c	Mon Aug 15 05:41:36 2016 -0500
@@ -480,14 +480,6 @@
     return ( (void *) ((size_t) GetCurrentThreadId()) );
 } /* __PHYSFS_platformGetThreadID */
 
-
-static int isSymlinkAttrs(const DWORD attr, const DWORD tag)
-{
-    return ( (attr & FILE_ATTRIBUTE_REPARSE_POINT) && 
-             (tag == PHYSFS_IO_REPARSE_TAG_SYMLINK) );
-} /* isSymlinkAttrs */
-
-
 void __PHYSFS_platformEnumerateFiles(const char *dirname,
                                      PHYSFS_EnumFilesCallback callback,
                                      const char *origdir,
@@ -530,8 +522,6 @@
 
     do
     {
-        const DWORD attr = entw.dwFileAttributes;
-        const DWORD tag = entw.dwReserved0;
         const WCHAR *fn = entw.cFileName;
         char *utf8;