From 1b52c46b81f59e75009a50bf5e1529d4c4b7f7d6 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 18 May 2016 23:00:05 +0000 Subject: [PATCH] Remove some dead code. --- CMakeLists.txt | 2 -- src/platform/unixutil.cpp | 7 ------- src/platform/w32main.cpp | 12 ------------ src/solvespace.h | 1 - 4 files changed, 22 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9aed589..e3762ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED YES) -include(CheckIncludeFile) - # for /MT on MSVC set(CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_SOURCE_DIR}/cmake/c_flag_overrides.cmake") diff --git a/src/platform/unixutil.cpp b/src/platform/unixutil.cpp index 7c1d921..83c0774 100644 --- a/src/platform/unixutil.cpp +++ b/src/platform/unixutil.cpp @@ -37,13 +37,6 @@ void ssremove(const std::string &filename) remove(filename.c_str()); } -int64_t GetUnixTime(void) -{ - time_t ret; - time(&ret); - return (int64_t)ret; -} - //----------------------------------------------------------------------------- // A separate heap, on which we allocate expressions. Maybe a bit faster, // since fragmentation is less of a concern, and it also makes it possible diff --git a/src/platform/w32main.cpp b/src/platform/w32main.cpp index 39e18c2..72b3316 100644 --- a/src/platform/w32main.cpp +++ b/src/platform/w32main.cpp @@ -781,18 +781,6 @@ int64_t SolveSpace::GetMilliseconds(void) return (int64_t)d; } -int64_t SolveSpace::GetUnixTime(void) -{ -#ifdef __MINGW32__ - time_t ret; - time(&ret); -#else - __time64_t ret; - _time64(&ret); -#endif - return (int64_t)ret; -} - void SolveSpace::InvalidateText(void) { InvalidateRect(TextWnd, NULL, false); diff --git a/src/solvespace.h b/src/solvespace.h index bbd4ac7..1e7d306 100644 --- a/src/solvespace.h +++ b/src/solvespace.h @@ -245,7 +245,6 @@ bool FullScreenIsActive(void); void GetGraphicsWindowSize(int *w, int *h); void GetTextWindowSize(int *w, int *h); int64_t GetMilliseconds(void); -int64_t GetUnixTime(void); void dbp(const char *str, ...); #define DBPTRI(tri) \