diff --git a/CMakeLists.txt b/CMakeLists.txt index 9323dc5a0..890d23ee3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,6 @@ SET (TASK_BINDIR bin CACHE STRING "Installation directory for the bi # rust libs require these set (TASK_LIBRARIES dl pthread) -check_function_exists (timegm HAVE_TIMEGM) check_function_exists (get_current_dir_name HAVE_GET_CURRENT_DIR_NAME) check_function_exists (wordexp HAVE_WORDEXP) diff --git a/cmake.h.in b/cmake.h.in index ec294bf99..25c0d6acc 100644 --- a/cmake.h.in +++ b/cmake.h.in @@ -41,9 +41,6 @@ /* Found tm_gmtoff */ #cmakedefine HAVE_TM_GMTOFF -/* Found timegm */ -#cmakedefine HAVE_TIMEGM - /* Found st.st_birthtime struct member */ #cmakedefine HAVE_ST_BIRTHTIME diff --git a/src/util.cpp b/src/util.cpp index ebbbf2191..6b945f959 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -218,24 +218,6 @@ const std::vector extractParents(const std::string& project, return vec; } -//////////////////////////////////////////////////////////////////////////////// -#ifndef HAVE_TIMEGM -time_t timegm(struct tm* tm) { - time_t ret; - char* tz; - tz = getenv("TZ"); - setenv("TZ", "UTC", 1); - tzset(); - ret = mktime(tm); - if (tz) - setenv("TZ", tz, 1); - else - unsetenv("TZ"); - tzset(); - return ret; -} -#endif - //////////////////////////////////////////////////////////////////////////////// bool nontrivial(const std::string& input) { std::string::size_type i = 0; diff --git a/src/util.h b/src/util.h index 782311117..d2be723f5 100644 --- a/src/util.h +++ b/src/util.h @@ -54,10 +54,6 @@ const std::string indentProject(const std::string&, const std::string& whitespac const std::vector extractParents(const std::string&, const char& delimiter = '.'); -#ifndef HAVE_TIMEGM -time_t timegm(struct tm* tm); -#endif - bool nontrivial(const std::string&); const char* optionalBlankLine(); void setHeaderUnderline(Table&);