Simplify day storage
The function day_process_storage() is a wrapper for day_store_items(). It has an unused second argument, and is only used twice to load the selected day. It has been removed. A new function, get_slctd_day(), is the equivalant of get_today() and replaces the very awkwardly named ui_calendar_get_slctd_day_sec(). Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
committed by
Lukas Fleischer
parent
06a4449afa
commit
8dd694b569
@@ -773,7 +773,6 @@ unsigned ui_calendar_week_begins_on_monday(void);
|
||||
void ui_calendar_store_current_date(struct date *);
|
||||
void ui_calendar_init_slctd_day(void);
|
||||
struct date *ui_calendar_get_slctd_day(void);
|
||||
time_t ui_calendar_get_slctd_day_sec(void);
|
||||
void ui_calendar_monthly_view_cache_set_invalid(void);
|
||||
void ui_calendar_update_panel(void);
|
||||
void ui_calendar_goto_today(void);
|
||||
@@ -807,7 +806,6 @@ int day_item_get_state(struct day_item *);
|
||||
void day_item_add_exc(struct day_item *, time_t);
|
||||
void day_item_fork(struct day_item *, struct day_item *);
|
||||
void day_store_items(time_t, int);
|
||||
void day_process_storage(struct date *, unsigned);
|
||||
void day_display_item_date(struct day_item *, WINDOW *, int, time_t, int, int);
|
||||
void day_display_item(struct day_item *, WINDOW *, int, int, int, int);
|
||||
void day_write_stdout(time_t, const char *, const char *, const char *,
|
||||
@@ -1175,6 +1173,7 @@ long min2sec(unsigned);
|
||||
void draw_scrollbar(struct scrollwin *, int);
|
||||
void item_in_popup(const char *, const char *, const char *, const char *);
|
||||
time_t get_today(void);
|
||||
time_t get_slctd_day(void);
|
||||
time_t now(void);
|
||||
char *nowstr(void);
|
||||
void print_bool_option_incolor(WINDOW *, unsigned, int, int);
|
||||
|
||||
Reference in New Issue
Block a user