From: Anatol Belski Date: Fri, 8 Dec 2017 21:59:00 +0000 (+0100) Subject: Remove dead code X-Git-Tag: php-7.3.0alpha1~848 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bd18c0f0b40e1213b906fb78a191e341678e172;p=php Remove dead code --- diff --git a/win32/ioutil.c b/win32/ioutil.c index 4c4e60d5d1..72b87b1ca4 100644 --- a/win32/ioutil.c +++ b/win32/ioutil.c @@ -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