diff options
Diffstat (limited to 'libc/tzcode/localtime.c')
-rw-r--r-- | libc/tzcode/localtime.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libc/tzcode/localtime.c b/libc/tzcode/localtime.c index 2e6804ed3..5e4e962f0 100644 --- a/libc/tzcode/localtime.c +++ b/libc/tzcode/localtime.c @@ -2310,20 +2310,4 @@ __attribute__((visibility("default"))) time_t mktime_tz(struct tm* const tmp, co return return_value; } -// Non-standard API: localtime(3) but with an explicit timezone parameter. -#if !defined(__LP64__) -__attribute__((visibility("default"))) void localtime_tz(const time_t* const timep, struct tm* tmp, const char* tz) { - struct state* st = malloc(sizeof(*st)); - - if (st == NULL) - return; - if (__bionic_tzload_cached(tz, st, TRUE) != 0) { - // TODO: not sure what's best here, but for now, we fall back to gmt. - gmtload(st); - } - localsub(timep, 0L, tmp, st); - free(st); -} -#endif - // END android-added |