aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui-calendar.c
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2018-12-13 20:29:22 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2019-05-22 01:56:59 -0400
commit8dd694b56956a1c4ec3519743904222b465e10a5 (patch)
treea049852063d6fdece604a454e2218fae892f68d6 /src/ui-calendar.c
parent06a4449afae29d4dd0e5d49249674511bb1f4489 (diff)
downloadcalcurse-8dd694b56956a1c4ec3519743904222b465e10a5.tar.gz
calcurse-8dd694b56956a1c4ec3519743904222b465e10a5.zip
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>
Diffstat (limited to 'src/ui-calendar.c')
-rw-r--r--src/ui-calendar.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ui-calendar.c b/src/ui-calendar.c
index 20bfd09..5b8ab1f 100644
--- a/src/ui-calendar.c
+++ b/src/ui-calendar.c
@@ -193,12 +193,6 @@ struct date *ui_calendar_get_slctd_day(void)
return &slctd_day;
}
-/* Returned value represents the selected day in calendar (in seconds) */
-time_t ui_calendar_get_slctd_day_sec(void)
-{
- return date2sec(slctd_day, 0, 0);
-}
-
static int ui_calendar_get_wday(struct date *date)
{
struct tm t;