diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-07-07 11:55:10 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-07-07 21:35:02 +0200 |
commit | 7fb25a84d427f4a3cb79ea02908daf9ce8ba07ca (patch) | |
tree | cb24b54351955c1d354095023534d8b51d8f9cec /src/event.c | |
parent | 69345edd77b3ff98a99b36de8063f9e5febad3eb (diff) | |
download | calcurse-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/event.c')
-rw-r--r-- | src/event.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/event.c b/src/event.c index de0ce02..b53ec2f 100644 --- a/src/event.c +++ b/src/event.c @@ -158,9 +158,6 @@ void event_delete(struct event *ev, enum eraseflg flag) EXIT(_("no such appointment")); switch (flag) { - case ERASE_FORCE_ONLY_NOTE: - erase_note(&ev->note); - break; case ERASE_CUT: LLIST_REMOVE(&eventlist, i); break; |