From 248c42500874df4526a3160446c43bda59706977 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Wed, 16 Mar 2011 13:40:46 +0000 Subject: [PATCH] ldlinux: Delete unused variables and functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix the following compiler warnings, readconfig.c: In function ‘parse_one_config’: readconfig.c:1059:6: warning: unused variable ‘i’ readconfig.c: At top level: readconfig.c:1110:13: warning: ‘dump_menu’ defined but not used Signed-off-by: Matt Fleming --- com32/elflink/ldlinux/readconfig.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c index b6cfb1b..e13d6d4 100644 --- a/com32/elflink/ldlinux/readconfig.c +++ b/com32/elflink/ldlinux/readconfig.c @@ -1056,7 +1056,6 @@ do_include: static int parse_one_config(const char *filename) { FILE *f; - int i; /* if (!strcmp(filename, "~")) @@ -1107,18 +1106,6 @@ static void resolve_gotos(void) } } -static void dump_menu(struct menu *menu) -{ - dprintf("will dump menu for %s:", menu->label); - printf("entries num: %d\n", menu->nentries); - printf("defentry: %d, nam = %s\n", - menu->defentry, menu->menu_entries[menu->defentry]->label); - printf("save: %d\n", menu->save); - //printf("", menu->); - //printf("", menu->); - //printf("", menu->); -} - void parse_configs(char **argv) { const char *filename; -- 2.7.4