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:
parent
94b4a8bb9a
commit
86724a205d
1 changed files with 1 additions and 12 deletions
13
apps/tree.c
13
apps/tree.c
|
|
@ -88,8 +88,6 @@ static struct gui_buttonbar tree_buttonbar;
|
||||||
#endif
|
#endif
|
||||||
static struct tree_context tc;
|
static struct tree_context tc;
|
||||||
|
|
||||||
bool boot_changed = false;
|
|
||||||
|
|
||||||
char lastfile[MAX_PATH];
|
char lastfile[MAX_PATH];
|
||||||
static char lastdir[MAX_PATH];
|
static char lastdir[MAX_PATH];
|
||||||
#ifdef HAVE_TAGCACHE
|
#ifdef HAVE_TAGCACHE
|
||||||
|
|
@ -655,16 +653,7 @@ static int dirbrowse(void)
|
||||||
bool restore = false;
|
bool restore = false;
|
||||||
if (tc.dirlevel < 0)
|
if (tc.dirlevel < 0)
|
||||||
tc.dirlevel = 0; /* shouldnt be needed.. this code needs work! */
|
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,
|
button = get_action(CONTEXT_TREE,
|
||||||
list_do_action_timeout(&tree_lists, HZ/2));
|
list_do_action_timeout(&tree_lists, HZ/2));
|
||||||
oldbutton = button;
|
oldbutton = button;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue