1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/apps/menu.c b/apps/menu.c
index 5b8b121..66a931e 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -283,22 +283,12 @@ static int talk_menu_item(int selected_item, void *data)
 void do_setting_from_menu(const struct menu_item_ex *temp,
                           struct viewport parent[NB_SCREENS])
 {
-    int setting_id, oldval;
+    int setting_id;
     const struct settings_list *setting =
             find_setting(temp->variable, &setting_id);
     char *title;
     char padded_title[MAX_PATH];
-    int var_type = setting->flags&F_T_MASK;
-    if (var_type == F_T_INT || var_type == F_T_UINT)
-    {
-        oldval = *(int*)setting->setting;
-    }
-    else if (var_type == F_T_BOOL)
-    {
-        oldval = *(bool*)setting->setting;
-    }
-    else
-        oldval = 0;
+
     if ((temp->flags&MENU_TYPE_MASK) == MT_SETTING_W_TEXT)
         title = temp->callback_and_desc->desc;
     else