From a7c37ea2d04c35628fc1ca9d353df637612303d0 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 21 Jul 2011 06:40:01 +0000 Subject: Pull yesno_pop out of the radio code as it is a nice simple resuasble yesno api worth reusing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30183 a1c6a512-1295-4272-9138-f99709370657 --- apps/radio/presets.c | 2 -- apps/radio/radio.c | 13 ------------- 2 files changed, 15 deletions(-) (limited to 'apps/radio') diff --git a/apps/radio/presets.c b/apps/radio/presets.c index 77b13f2ed7..26a607ad4b 100644 --- a/apps/radio/presets.c +++ b/apps/radio/presets.c @@ -59,8 +59,6 @@ static char filepreset[MAX_PATH]; /* preset filename variable */ static int num_presets = 0; /* The number of presets in the preset list */ -bool yesno_pop(const char* text); /* radio.c */ - int radio_current_preset(void) { return curr_preset; diff --git a/apps/radio/radio.c b/apps/radio/radio.c index e4b14c843e..f88a63382d 100644 --- a/apps/radio/radio.c +++ b/apps/radio/radio.c @@ -154,19 +154,6 @@ int radio_current_frequency(void) return curr_freq; } -/* Function to manipulate all yesno dialogues. - This function needs the output text as an argument. */ -bool yesno_pop(const char* text) -{ - int i; - const char *lines[]={text}; - const struct text_message message={lines, 1}; - bool ret = (gui_syncyesno_run(&message,NULL,NULL)== YESNO_YES); - FOR_NB_SCREENS(i) - screens[i].clear_viewport(); - return ret; -} - void radio_init(void) { tuner_init(); -- cgit v1.2.3