summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-01-03 18:18:15 +0100
committerGravatar Nikias Bassen2017-01-03 18:18:15 +0100
commit5b0184aa95f916dc1fc2d5948d0e8c655d998dd4 (patch)
tree4bfb495b4bcc33783b16c134f1467c1d7fce67e8
parent035148c8351ddf16ce89415b1b6d087f44bd17fe (diff)
downloadlibplist-5b0184aa95f916dc1fc2d5948d0e8c655d998dd4.tar.gz
libplist-5b0184aa95f916dc1fc2d5948d0e8c655d998dd4.tar.bz2
time64: Remove some unused (and non-thread-safe) functions
-rw-r--r--src/time64.c24
-rw-r--r--src/time64.h4
2 files changed, 0 insertions, 28 deletions
diff --git a/src/time64.c b/src/time64.c
index 8f82e39..371f2f9 100644
--- a/src/time64.c
+++ b/src/time64.c
@@ -49,11 +49,6 @@ gmtime64_r() is a 64-bit equivalent of gmtime_r().
#include "time64_limits.h"
-/* Spec says except for stftime() and the _r() functions, these
- all return static memory. Stabbings! */
-static struct TM Static_Return_Date;
-static char Static_Return_String[35];
-
static const char days_in_month[2][12] = {
{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
@@ -815,22 +810,3 @@ char *ctime64_r( const Time64_T* time, char* result ) {
return asctime64_r( &date, result );
}
-
-/* Non-thread safe versions of the above */
-struct TM *localtime64(const Time64_T *time) {
- tzset();
- return localtime64_r(time, &Static_Return_Date);
-}
-
-struct TM *gmtime64(const Time64_T *time) {
- return gmtime64_r(time, &Static_Return_Date);
-}
-
-char *asctime64( const struct TM* date ) {
- return asctime64_r( date, Static_Return_String );
-}
-
-char *ctime64( const Time64_T* time ) {
- tzset();
- return asctime64(localtime64(time));
-}
diff --git a/src/time64.h b/src/time64.h
index 556e06f..bf174c6 100644
--- a/src/time64.h
+++ b/src/time64.h
@@ -45,13 +45,9 @@ struct TM64 {
/* Declare public functions */
struct TM *gmtime64_r (const Time64_T *, struct TM *);
struct TM *localtime64_r (const Time64_T *, struct TM *);
-struct TM *gmtime64 (const Time64_T *);
-struct TM *localtime64 (const Time64_T *);
-char *asctime64 (const struct TM *);
char *asctime64_r (const struct TM *, char *);
-char *ctime64 (const Time64_T*);
char *ctime64_r (const Time64_T*, char*);
Time64_T timegm64 (const struct TM *);