summaryrefslogtreecommitdiff
path: root/apps/menus/time_menu.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-05-13 17:11:45 +0200
committerChristian Soffke <christian.soffke@gmail.com>2024-05-13 18:18:45 +0200
commitfdba79cd7777d3318531995083984fade98afae8 (patch)
tree908ff3d74414e133456b9f29aab4fedb58f5ba0c /apps/menus/time_menu.c
parent8eeef333a15d99a38f733a45612728dfae66b862 (diff)
downloadrockbox-fdba79cd7777d3318531995083984fade98afae8.tar.gz
rockbox-fdba79cd7777d3318531995083984fade98afae8.zip
shortcuts: refactor sleeptimer / talk_timedate
move some functions around, with no effect on behavior Change-Id: I4638a28f5ff2a851534a3dd696ea7e763029cb2f
Diffstat (limited to 'apps/menus/time_menu.c')
-rw-r--r--apps/menus/time_menu.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/apps/menus/time_menu.c b/apps/menus/time_menu.c
index e6b5637047..79a38a1a57 100644
--- a/apps/menus/time_menu.c
+++ b/apps/menus/time_menu.c
@@ -144,23 +144,6 @@ MENUITEM_FUNCTION(alarm_wake_up_screen, 0, ID2P(LANG_ALARM_WAKEUP_SCREEN),
144 144
145#endif /* HAVE_RTC_ALARM */ 145#endif /* HAVE_RTC_ALARM */
146 146
147void talk_timedate(void)
148{
149 struct tm *tm = get_time();
150 if (!global_settings.talk_menu)
151 return;
152 talk_id(VOICE_CURRENT_TIME, false);
153 if (valid_time(tm))
154 {
155 talk_time(tm, true);
156 talk_date(get_time(), true);
157 }
158 else
159 {
160 talk_id(LANG_UNKNOWN, true);
161 }
162}
163
164static void draw_timedate(struct viewport *vp, struct screen *display) 147static void draw_timedate(struct viewport *vp, struct screen *display)
165{ 148{
166 struct tm *tm = get_time(); 149 struct tm *tm = get_time();