From 3fd2da951eefee9190f1e5a4c6af4ee329a84be1 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Tue, 28 Sep 2021 21:59:23 -0700 Subject: [PATCH] remove unused futimes check --- cmake/ConfigureChecks.cmake | 1 - config_cmake.h.in | 3 --- src/fallback.cpp | 7 ------- src/fallback.h | 4 ---- 4 files changed, 15 deletions(-) diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 559566234..b10ef64ff 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -83,7 +83,6 @@ check_cxx_symbol_exists(flock sys/file.h HAVE_FLOCK) # futimens is new in OS X 10.13 but is a weak symbol. # Don't assume it exists just because we can link - it may be null. check_cxx_symbol_exists(futimens sys/stat.h HAVE_FUTIMENS) -check_cxx_symbol_exists(futimes sys/time.h HAVE_FUTIMES) check_cxx_symbol_exists(getifaddrs ifaddrs.h HAVE_GETIFADDRS) check_cxx_symbol_exists(getpwent pwd.h HAVE_GETPWENT) check_cxx_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE) diff --git a/config_cmake.h.in b/config_cmake.h.in index 533659c1a..f2eb4b248 100644 --- a/config_cmake.h.in +++ b/config_cmake.h.in @@ -25,9 +25,6 @@ /* Define to 1 if you have the `futimens' function. */ #cmakedefine HAVE_FUTIMENS 1 -/* Define to 1 if you have the `futimes' function. */ -#cmakedefine HAVE_FUTIMES 1 - /* Define to 1 if you have the `getifaddrs' function. */ #cmakedefine HAVE_GETIFADDRS 1 diff --git a/src/fallback.cpp b/src/fallback.cpp index 4b506a719..b60cfb4e2 100644 --- a/src/fallback.cpp +++ b/src/fallback.cpp @@ -182,13 +182,6 @@ size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz) { } #endif -#ifndef HAVE_FUTIMES -int futimes(int fd, const struct timeval *times) { - errno = ENOSYS; - return -1; -} -#endif - #if HAVE_GETTEXT char *fish_gettext(const char *msgid) { return gettext(msgid); } diff --git a/src/fallback.h b/src/fallback.h index 949d33469..9c71296d9 100644 --- a/src/fallback.h +++ b/src/fallback.h @@ -122,10 +122,6 @@ wchar_t *wcsndup(const wchar_t *in, size_t c); size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz); #endif -#ifndef HAVE_FUTIMES -int futimes(int fd, const struct timeval *times); -#endif - // autoconf may fail to detect gettext (645), so don't define a function call gettext or we'll get // build errors.