Remove unused functions
Remove apoint_get(), event_get(), recur_get_apoint() and recur_get_event(), since they are no longer used. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
0504875219
commit
ba28426fc0
12
src/apoint.c
12
src/apoint.c
@ -413,18 +413,6 @@ struct apoint *apoint_scan(FILE * f, struct tm start, struct tm end, char state,
|
||||
return apoint_new(buf, note, tstart, tend - tstart, state);
|
||||
}
|
||||
|
||||
/* Retrieve an appointment from the list, given the day and item position. */
|
||||
struct apoint *apoint_get(long day, int pos)
|
||||
{
|
||||
llist_item_t *i = LLIST_TS_FIND_NTH(&alist_p, pos, day, apoint_inday);
|
||||
|
||||
if (i)
|
||||
return LLIST_TS_GET_DATA(i);
|
||||
|
||||
EXIT(_("item not found"));
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
void apoint_delete_bynum(long start, unsigned num, enum eraseflg flag)
|
||||
{
|
||||
llist_item_t *i;
|
||||
|
@ -607,7 +607,6 @@ unsigned apoint_inday(struct apoint *, long);
|
||||
void apoint_sec2str(struct apoint *, long, char *, char *);
|
||||
void apoint_write(struct apoint *, FILE *);
|
||||
struct apoint *apoint_scan(FILE *, struct tm, struct tm, char, char *);
|
||||
struct apoint *apoint_get(long, int);
|
||||
void apoint_delete_bynum(long, unsigned, enum eraseflg);
|
||||
void apoint_scroll_pad_down(int, int);
|
||||
void apoint_scroll_pad_up(int);
|
||||
@ -697,7 +696,6 @@ struct event *event_new(char *, char *, long, int);
|
||||
unsigned event_inday(struct event *, long);
|
||||
void event_write(struct event *, FILE *);
|
||||
struct event *event_scan(FILE *, struct tm, int, char *);
|
||||
struct event *event_get(long, int);
|
||||
void event_delete_bynum(long, unsigned, enum eraseflg);
|
||||
void event_paste_item(void);
|
||||
|
||||
@ -868,8 +866,6 @@ void recur_apoint_erase(long, unsigned, unsigned, enum eraseflg);
|
||||
void recur_repeat_item(void);
|
||||
void recur_exc_scan(llist_t *, FILE *);
|
||||
struct notify_app *recur_apoint_check_next(struct notify_app *, long, long);
|
||||
struct recur_apoint *recur_get_apoint(long, int);
|
||||
struct recur_event *recur_get_event(long, int);
|
||||
void recur_apoint_switch_notify(struct recur_apoint *);
|
||||
void recur_event_paste_item(void);
|
||||
void recur_apoint_paste_item(void);
|
||||
|
12
src/event.c
12
src/event.c
@ -154,18 +154,6 @@ struct event *event_scan(FILE * f, struct tm start, int id, char *note)
|
||||
return event_new(buf, note, tstart, id);
|
||||
}
|
||||
|
||||
/* Retrieve an event from the list, given the day and item position. */
|
||||
struct event *event_get(long day, int pos)
|
||||
{
|
||||
llist_item_t *i = LLIST_FIND_NTH(&eventlist, pos, day, event_inday);
|
||||
|
||||
if (i)
|
||||
return LLIST_TS_GET_DATA(i);
|
||||
|
||||
EXIT(_("event not found"));
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
/* Delete an event from the list. */
|
||||
void event_delete_bynum(long start, unsigned num, enum eraseflg flag)
|
||||
{
|
||||
|
26
src/recur.c
26
src/recur.c
@ -978,32 +978,6 @@ struct notify_app *recur_apoint_check_next(struct notify_app *app, long start,
|
||||
return app;
|
||||
}
|
||||
|
||||
/* Returns a structure containing the selected recurrent appointment. */
|
||||
struct recur_apoint *recur_get_apoint(long date, int num)
|
||||
{
|
||||
llist_item_t *i = LLIST_TS_FIND_NTH(&recur_alist_p, num, date,
|
||||
recur_apoint_inday);
|
||||
|
||||
if (i)
|
||||
return LLIST_TS_GET_DATA(i);
|
||||
|
||||
EXIT(_("item not found"));
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
/* Returns a structure containing the selected recurrent event. */
|
||||
struct recur_event *recur_get_event(long date, int num)
|
||||
{
|
||||
llist_item_t *i = LLIST_FIND_NTH(&recur_elist, num, date,
|
||||
recur_event_inday);
|
||||
|
||||
if (i)
|
||||
return LLIST_GET_DATA(i);
|
||||
|
||||
EXIT(_("item not found"));
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
/* Switch recurrent item notification state. */
|
||||
void recur_apoint_switch_notify(struct recur_apoint *rapt)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user