mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
misc: Eliminate redundant yes/no dialog functions
Change-Id: I28bc4531cdfe6e28a1677b1a0ebb461e48188fd8
This commit is contained in:
parent
ad4113a7e9
commit
ca459a9d09
5 changed files with 4 additions and 19 deletions
14
apps/misc.c
14
apps/misc.c
|
@ -1274,20 +1274,6 @@ int confirm_delete_yesno(const char *name)
|
|||
return gui_syncyesno_run(&message, &yes_message, NULL);
|
||||
}
|
||||
|
||||
int confirm_overwrite_yesno(void)
|
||||
{
|
||||
static const char *lines[] = { ID2P(LANG_REALLY_OVERWRITE) };
|
||||
static const struct text_message message = { lines, 1 };
|
||||
return gui_syncyesno_run(&message, NULL, NULL);
|
||||
}
|
||||
|
||||
int confirm_remove_queued_yesno(void)
|
||||
{
|
||||
static const char *lines[] = { ID2P(LANG_REMOVE_QUEUED_TRACKS) };
|
||||
static const struct text_message message = { lines, 1 };
|
||||
return gui_syncyesno_run(&message, NULL, NULL);
|
||||
}
|
||||
|
||||
/* time_split_units()
|
||||
split time values depending on base unit
|
||||
unit_idx: UNIT_HOUR, UNIT_MIN, UNIT_SEC, UNIT_MS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue