summaryrefslogtreecommitdiffstats
path: root/apps/gui/list.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-02-21 13:32:52 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-02-21 13:32:52 +0000
commitdafcd1470acaced405fa1a67d008aa1b68d1b6dd (patch)
tree745e97fbf7babf0ece064aaa619a956a7bc19de3 /apps/gui/list.c
parent2ec0312353e7dfd27ef120aedf5876d92c0c6589 (diff)
downloadrockbox-dafcd1470acaced405fa1a67d008aa1b68d1b6dd.tar.gz
rockbox-dafcd1470acaced405fa1a67d008aa1b68d1b6dd.tar.bz2
rockbox-dafcd1470acaced405fa1a67d008aa1b68d1b6dd.zip
remove unused fields from struct gui_synclist.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24807 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 0c05e01785..a3b822503b 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -155,7 +155,6 @@ void gui_synclist_init(struct gui_synclist * gui_list,
FOR_NB_SCREENS(i)
{
gui_list->start_item[i] = 0;
- gui_list->last_displayed_start_item[i] = -1 ;
#ifdef HAVE_LCD_BITMAP
gui_list->offset_position[i] = 0;
#endif
@@ -170,12 +169,10 @@ void gui_synclist_init(struct gui_synclist * gui_list,
gui_list->scroll_all = scroll_all;
gui_list->selected_size = selected_size;
gui_list->title = NULL;
- gui_list->title_width = 0;
gui_list->title_icon = Icon_NOICON;
gui_list->scheduled_talk_tick = gui_list->last_talked_tick = 0;
gui_list->show_selection_marker = true;
- gui_list->last_displayed_selected_item = -1;
#ifdef HAVE_LCD_COLOR
gui_list->title_color = -1;
@@ -402,20 +399,6 @@ void gui_synclist_set_title(struct gui_synclist * gui_list,
{
gui_list->title = title;
gui_list->title_icon = icon;
- if (title)
- {
-#ifdef HAVE_LCD_BITMAP
- int i;
- FOR_NB_SCREENS(i)
- screens[i].getstringsize(title, &gui_list->title_width, NULL);
-#else
- gui_list->title_width = strlen(title);
-#endif
- }
- else
- {
- gui_list->title_width = 0;
- }
}
void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items)