mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Removed some silly code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@772 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
361aaf6acd
commit
b3f59c4172
1 changed files with 15 additions and 25 deletions
12
apps/tree.c
12
apps/tree.c
|
@ -117,7 +117,6 @@ static int showdir(char *path, int start)
|
|||
#endif
|
||||
|
||||
for ( i=start; i < start+TREE_MAX_ON_SCREEN; i++ ) {
|
||||
if ( i < filesindir ) {
|
||||
int len = strlen(buffer[i].name);
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
@ -138,9 +137,6 @@ static int showdir(char *path, int start)
|
|||
buffer[i].name[TREE_MAX_LEN_DISPLAY]=storage;
|
||||
}
|
||||
}
|
||||
else
|
||||
lcd_puts(LINE_X, LINE_Y+i-start," ");
|
||||
}
|
||||
|
||||
return filesindir;
|
||||
}
|
||||
|
@ -176,13 +172,7 @@ bool dirbrowse(char *root)
|
|||
#endif
|
||||
|
||||
while(1) {
|
||||
int key = button_get();
|
||||
|
||||
if(!key) {
|
||||
sleep(1);
|
||||
continue;
|
||||
}
|
||||
switch(key) {
|
||||
switch(button_get(true)) {
|
||||
#if defined(SIMULATOR) && defined(HAVE_RECODER_KEYPAD)
|
||||
case BUTTON_OFF:
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue