summaryrefslogtreecommitdiff
path: root/apps/gui/option_select.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-05-03 14:26:47 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-05-03 14:26:47 +0000
commitef5286c48cff068c182d690820639d5700b4bc9c (patch)
tree2140c476ce04dbd4b832ac7488d2e950b3f8b0c7 /apps/gui/option_select.c
parentb2ad20c2cb61a8c5848e5e42c249d5896818a44b (diff)
downloadrockbox-ef5286c48cff068c182d690820639d5700b4bc9c.zip
rockbox-ef5286c48cff068c182d690820639d5700b4bc9c.tar.gz
rockbox-ef5286c48cff068c182d690820639d5700b4bc9c.tar.bz2
rockbox-ef5286c48cff068c182d690820639d5700b4bc9c.tar.xz
remove some dead code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17320 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r--apps/gui/option_select.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index 43b5fa6..288bf90 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -554,54 +554,3 @@ bool option_screen(struct settings_list *setting,
return false;
}
-
-
-/* to be replaced */
-void option_select_init_items(struct option_select * opt,
- const char * title,
- int selected,
- const struct opt_items * items,
- int nb_items)
-{
- opt->title=title;
- opt->min_value=0;
- opt->max_value=nb_items;
- opt->option=selected;
- opt->items=items;
-}
-
-void option_select_next(struct option_select * opt)
-{
- if(opt->option + 1 >= opt->max_value)
- {
- if(opt->option==opt->max_value-1)
- opt->option=opt->min_value;
- else
- opt->option=opt->max_value-1;
- }
- else
- opt->option+=1;
-}
-
-void option_select_prev(struct option_select * opt)
-{
- if(opt->option - 1 < opt->min_value)
- {
- /* the dissimilarity to option_select_next() arises from the
- * sleep timer problem (bug #5000 and #5001):
- * there we have min=0, step = 5 but the value itself might
- * not be a multiple of 5 -- as time elapsed;
- * We need to be able to set timer to 0 (= Off) nevertheless. */
- if(opt->option!=opt->min_value)
- opt->option=opt->min_value;
- else
- opt->option=opt->max_value-1;
- }
- else
- opt->option-=1;
-}
-
-const char * option_select_get_text(struct option_select * opt)
-{
- return(P2STR(opt->items[opt->option].string));
-}