]> granicus.if.org Git - php/commitdiff
Drop unused code
authorAnatol Belski <ab@php.net>
Fri, 15 Dec 2017 13:58:43 +0000 (14:58 +0100)
committerAnatol Belski <ab@php.net>
Fri, 15 Dec 2017 13:58:43 +0000 (14:58 +0100)
Zend/zend_virtual_cwd.c

index a05d1c58ac14a54783741725d3211b45bae5f682..1ea6685ea644417e848930884bf2f20892d657c0 100644 (file)
@@ -1226,19 +1226,6 @@ static size_t tsrm_win32_realpath_quick(char *path, size_t len, time_t *t) /* {{
                return bucket->realpath_len;
        }
 
-#if 0
-               if (!php_win32_ioutil_realpath_ex0(resolved_path, tmp_resolved_path, &info)) {
-                       if (CWD_REALPATH == use_realpath) {
-                               DWORD err = GetLastError();
-                               SET_ERRNO_FROM_WIN32_CODE(err);
-                               return 1;
-                       } else {
-                               /* Fallback to expand only to retain BC. */
-                               path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL);
-                       }
-               } else {
-#endif
-
        if (!php_win32_ioutil_realpath_ex0(path, tmp_resolved_path, &info)) {
                DWORD err = GetLastError();
                SET_ERRNO_FROM_WIN32_CODE(err);