aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/time
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-10-20 07:30:17 +0000
committerCorinna Vinschen <corinna@vinschen.de>2014-10-20 07:30:17 +0000
commit2a126568addbc7a775d8c68f34d29a8bfdfaa9f3 (patch)
tree96481066714ad4d5d1fc0fe76a8a93575c63ca30 /newlib/libc/time
parentcc5a7d7519f6e18247e2c301dcf48a9b9417caaf (diff)
downloadnewlib-2a126568addbc7a775d8c68f34d29a8bfdfaa9f3.zip
newlib-2a126568addbc7a775d8c68f34d29a8bfdfaa9f3.tar.gz
newlib-2a126568addbc7a775d8c68f34d29a8bfdfaa9f3.tar.bz2
* libc/time/gmtime_r.c (gmtime_r): Remove dead code.
Diffstat (limited to 'newlib/libc/time')
-rw-r--r--newlib/libc/time/gmtime_r.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/newlib/libc/time/gmtime_r.c b/newlib/libc/time/gmtime_r.c
index 1111cbc..8944845 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);