misc: Eliminate redundant yes/no dialog functions

Change-Id: I28bc4531cdfe6e28a1677b1a0ebb461e48188fd8
This commit is contained in:
Christian Soffke 2025-01-09 03:23:54 +01:00
parent ad4113a7e9
commit ca459a9d09
5 changed files with 4 additions and 19 deletions

View file

@ -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