Skip to content

Commit 18cf557

Browse files
victoryforceTurboGit
authored andcommitted
Remove the strptime implementation for Windows as unused
1 parent bdeb35b commit 18cf557

5 files changed

Lines changed: 1 addition & 653 deletions

File tree

‎src/CMakeLists.txt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ if(APPLE)
201201
endif(APPLE)
202202

203203
if(WIN32)
204-
list(APPEND SOURCE_FILES "win/strptime.c")
205-
list(APPEND HEADER_FILES "win/strptime.h")
206204
list(APPEND SOURCE_FILES "win/statvfs.c")
207205
list(APPEND HEADER_FILES "win/statvfs.h")
208206

‎src/common/collection.c‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@
3535
#include <stdlib.h>
3636
#include <unistd.h>
3737

38-
39-
#ifdef _WIN32
40-
//MSVCRT does not have strptime implemented
41-
#include "win/strptime.h"
42-
#endif
43-
44-
4538
#ifdef USE_LUA
4639
#include "lua/call.h"
4740
#include "lua/events.h"
@@ -3313,6 +3306,7 @@ void dt_collection_history_save()
33133306
// save current history
33143307
dt_conf_set_string("plugins/lighttable/collect/history0", buf);
33153308
}
3309+
33163310
// clang-format off
33173311
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
33183312
// vim: shiftwidth=2 expandtab tabstop=2 cindent

‎src/libs/import.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@
4343
#include "osx/osx.h"
4444
#endif
4545

46-
#ifdef _WIN32
47-
//MSVCRT does not have strptime implemented
48-
#include "win/strptime.h"
49-
#endif
50-
5146
#include <strings.h>
5247
#include <librsvg/rsvg.h>
5348

0 commit comments

Comments
 (0)