From 7fb25a84d427f4a3cb79ea02908daf9ce8ba07ca Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 7 Jul 2012 11:55:10 +0200 Subject: 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 --- src/apoint.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/apoint.c') diff --git a/src/apoint.c b/src/apoint.c index 694c318..a308b26 100644 --- a/src/apoint.c +++ b/src/apoint.c @@ -224,9 +224,6 @@ void apoint_delete(struct apoint *apt, enum eraseflg flag) EXIT(_("no such appointment")); switch (flag) { - case ERASE_FORCE_ONLY_NOTE: - erase_note(&apt->note); - break; case ERASE_CUT: if (notify_bar()) need_check_notify = notify_same_item(apt->start); -- cgit v1.2.3