Skip to content

Commit

Permalink
Remove unused function: menu_progress_bar
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Pankratz <[email protected]>
  • Loading branch information
kratz00 committed Jan 23, 2023
1 parent 148fd40 commit 1a8a375
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
23 changes: 0 additions & 23 deletions menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,29 +325,6 @@ menu_switch_on_off (Menu * menu, const char *name)
}
}

int
menu_progress_bar (Menu * menu, const char *name, int increment)
{
const char *svalue = menu_items_get_value (menu->items, name);
int value = atoi (svalue);
static char nval[5];

if (increment == 0)
return value;
else {
value += increment;
if (value > 100)
value = 100;
if (value < 0)
value = 0;
}

sprintf (nval, "%d %%", value);
menu_set_value (menu, name, nval);
return value;
}


const char *
menu_get_value (Menu * menu, const char *name)
{
Expand Down
2 changes: 0 additions & 2 deletions menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ int menu_visible (Menu * menu);
// retourne l'etat du switch
int menu_switch_on_off (Menu * menu, const char *name);

int menu_progress_bar (Menu * menu, const char *name, int increment);

///
/// Fonctions pour faire des choses vraiment particuliere
///
Expand Down

0 comments on commit 1a8a375

Please sign in to comment.