1
0
Fork 0
forked from len0rd/rockbox

Remove dead rolo related code (boot_changed was never set to true).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30233 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-08-01 13:03:21 +00:00
parent 94b4a8bb9a
commit 86724a205d

View file

@ -88,8 +88,6 @@ static struct gui_buttonbar tree_buttonbar;
#endif
static struct tree_context tc;
bool boot_changed = false;
char lastfile[MAX_PATH];
static char lastdir[MAX_PATH];
#ifdef HAVE_TAGCACHE
@ -655,16 +653,7 @@ static int dirbrowse(void)
bool restore = false;
if (tc.dirlevel < 0)
tc.dirlevel = 0; /* shouldnt be needed.. this code needs work! */
#ifdef BOOTFILE
if (boot_changed) {
static const char *lines[]={ID2P(LANG_BOOT_CHANGED), ID2P(LANG_REBOOT_NOW)};
static const struct text_message message={lines, 2};
if(gui_syncyesno_run(&message, NULL, NULL)==YESNO_YES)
rolo_load("/" BOOTFILE);
restore = true;
boot_changed = false;
}
#endif
button = get_action(CONTEXT_TREE,
list_do_action_timeout(&tree_lists, HZ/2));
oldbutton = button;