From 1fb897feaee742cf44113bc80bdfea3203737f43 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 6 Oct 2011 13:01:12 +0200 Subject: src/recur.c: Remove diff_weeks() After our recur_item_inday() rewrite, this function is no longer used. Signed-off-by: Lukas Fleischer --- src/recur.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/recur.c') diff --git a/src/recur.c b/src/recur.c index 76ea6e6..da4cdf9 100644 --- a/src/recur.c +++ b/src/recur.c @@ -553,9 +553,9 @@ recur_save_data (FILE *f) /* - * The two following defines together with the diff_days, diff_weeks, - * diff_months and diff_years functions were provided by Lukas Fleischer to - * correct the wrong calculation of recurrent dates after a turn of year. + * The two following defines together with the diff_days, diff_months and + * diff_years functions were provided by Lukas Fleischer to correct the wrong + * calculation of recurrent dates after a turn of year. */ #define BC(start, end, bs) \ (((end) - (start) + ((start) % bs) - ((end) % bs)) / bs \ @@ -586,13 +586,6 @@ diff_days (struct tm lt_start, struct tm lt_end) return diff; } -/* Calculate the difference in weeks between two dates. */ -static long -diff_weeks (struct tm lt_start, struct tm lt_end) -{ - return diff_days (lt_start, lt_end) / WEEKINDAYS; -} - /* Calculate the difference in months between two dates. */ static long diff_months (struct tm lt_start, struct tm lt_end) -- cgit v1.2.3-54-g00ecf