aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'format.c')
-rw-r--r--format.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/format.c b/format.c
index 98757b2f..b88120cb 100644
--- a/format.c
+++ b/format.c
@@ -1373,7 +1373,6 @@ format_pretty_time(time_t t)
struct tm now_tm, tm;
time_t now, age;
char s[6];
- int m;
time(&now);
if (now < t)
@@ -1397,10 +1396,6 @@ format_pretty_time(time_t t)
}
/* Last 12 months. */
- if (now_tm.tm_mon == 0)
- m = 11;
- else
- m = now_tm.tm_mon - 1;
if ((tm.tm_year == now_tm.tm_year && tm.tm_mon < now_tm.tm_mon) ||
(tm.tm_year == now_tm.tm_year - 1 && tm.tm_mon > now_tm.tm_mon)) {
strftime(s, sizeof s, "%d%b", &tm);