summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-10-06 13:01:12 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-10-21 08:58:53 +0200
commit1fb897feaee742cf44113bc80bdfea3203737f43 (patch)
tree2ca2e2435279d987d515911974fa830c28a004ce /src
parent0d51e61f3d865c27421f4318d2e79e03144c4078 (diff)
downloadcalcurse-1fb897feaee742cf44113bc80bdfea3203737f43.tar.gz
calcurse-1fb897feaee742cf44113bc80bdfea3203737f43.zip
src/recur.c: Remove diff_weeks()
After our recur_item_inday() rewrite, this function is no longer used. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r--src/recur.c13
1 files changed, 3 insertions, 10 deletions
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)