summaryrefslogtreecommitdiff
path: root/src/recur.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-07-07 11:55:10 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-07-07 21:35:02 +0200
commit7fb25a84d427f4a3cb79ea02908daf9ce8ba07ca (patch)
treecb24b54351955c1d354095023534d8b51d8f9cec /src/recur.c
parent69345edd77b3ff98a99b36de8063f9e5febad3eb (diff)
downloadcalcurse-7fb25a84d427f4a3cb79ea02908daf9ce8ba07ca.zip
Refactor note removal
Remove the note removal code from *_delete()/*_erase() and create a new wrapper function called day_item_erase_note() that is be used to drop the note being associated to an item. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/recur.c')
-rw-r--r--src/recur.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/recur.c b/src/recur.c
index 0a17414..d8215d1 100644
--- a/src/recur.c
+++ b/src/recur.c
@@ -687,9 +687,6 @@ recur_event_erase(struct recur_event *rev, long start, unsigned delete_whole,
if (delete_whole) {
switch (flag) {
- case ERASE_FORCE_ONLY_NOTE:
- erase_note(&rev->note);
- break;
case ERASE_CUT:
LLIST_REMOVE(&recur_elist, i);
return;
@@ -723,13 +720,10 @@ recur_apoint_erase(struct recur_apoint *rapt, long start,
EXIT(_("appointment not found"));
LLIST_TS_LOCK(&recur_alist_p);
- if (notify_bar() && flag != ERASE_FORCE_ONLY_NOTE)
+ if (notify_bar())
need_check_notify = notify_same_recur_item(rapt);
if (delete_whole) {
switch (flag) {
- case ERASE_FORCE_ONLY_NOTE:
- erase_note(&rapt->note);
- break;
case ERASE_CUT:
LLIST_TS_REMOVE(&recur_alist_p, i);
break;