]> granicus.if.org Git - php/commitdiff
Remove dead code
authorAnatol Belski <ab@php.net>
Fri, 8 Dec 2017 21:59:00 +0000 (22:59 +0100)
committerAnatol Belski <ab@php.net>
Fri, 8 Dec 2017 21:59:00 +0000 (22:59 +0100)
win32/ioutil.c

index 4c4e60d5d1f0319e77512904b7ec956e07a5d53f..72b87b1ca4066fe6fde14f1b6202e975d2b32c26 100644 (file)
@@ -683,36 +683,6 @@ PW32IO int php_win32_ioutil_access_w(const wchar_t *path, mode_t mode)
        return 0;
 }/*}}}*/
 
-#if 0
-PW32IO HANDLE php_win32_ioutil_findfirstfile_w(char *path, WIN32_FIND_DATA *data)
-{
-       HANDLE ret = INVALID_HANDLE_VALUE;
-       DWORD err;
-
-       if (!path) {
-               SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
-               return ret;
-       }
-
-       pathw = php_win32_ioutil_any_to_w(path);
-
-       if (!pathw) {
-               err = GetLastError();
-               SET_ERRNO_FROM_WIN32_CODE(ret);
-               return ret;
-       }
-
-               ret = FindFirstFileW(pathw, data);
-       
-       if (INVALID_HANDLE_VALUE == ret && path) {
-               ret = FindFirstFileA(path, data);
-       }
-
-       /* XXX set errno */
-       return ret;
-}
-#endif
-
 /*
  * Local variables:
  * tab-width: 4