From 2a126568addbc7a775d8c68f34d29a8bfdfaa9f3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 20 Oct 2014 07:30:17 +0000 Subject: * libc/time/gmtime_r.c (gmtime_r): Remove dead code. --- newlib/libc/time/gmtime_r.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'newlib/libc') diff --git a/newlib/libc/time/gmtime_r.c b/newlib/libc/time/gmtime_r.c index 1111cbc0e..8944845b0 100644 --- a/newlib/libc/time/gmtime_r.c +++ b/newlib/libc/time/gmtime_r.c @@ -47,11 +47,6 @@ _DEFUN (gmtime_r, (tim_p, res), rem += SECSPERDAY; --days; } - while (rem >= SECSPERDAY) - { - rem -= SECSPERDAY; - ++days; - } /* compute hour, min, and sec */ res->tm_hour = (int) (rem / SECSPERHOUR); -- cgit v1.2.3