diff --git a/ChangeLog b/ChangeLog index f2460b018b9561d7996c24bcf9a2bf06969f7d4f..a025073f371e41888781cfa0ae24e3be7f36ec32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ * src/rcfile.c - Fix compilation with --disable-color. * src/rcfile.c - Allow (un)binding keys when colour is disabled. * src/help.c - Fix compilation with --disable-browser. + * src/{proto.h,browser.c,help.c} - Remove a superfluous function. 2014-03-26 Mike Frysinger <vapier@gentoo.org>. * configure.ac - Clean up most of the --with/--enable flags: diff --git a/src/browser.c b/src/browser.c index 28ff1843d15086d1495020fdccc914e9f4c163fb..d62e881d206eb7149a0fcf550e0eeb8a121e6772 100644 --- a/src/browser.c +++ b/src/browser.c @@ -173,10 +173,10 @@ char *do_browser(char *path, DIR *dir) total_redraw(); } else if (f->scfunc == do_help_void) { #ifndef DISABLE_HELP - do_browser_help(); + do_help_void(); curs_set(0); #else - nano_disabled_msg(); + nano_disabled_msg(); #endif /* Search for a filename. */ } else if (f->scfunc == do_search) { diff --git a/src/help.c b/src/help.c index 9d81ea00ca06d992e0d91bd9ef1cb439c9b6a692..429a51f6bf0ff0d7b76dbfd0fbc623f08f2cb573 100644 --- a/src/help.c +++ b/src/help.c @@ -201,14 +201,6 @@ void do_help(void (*refresh_func)(void)) help_text = NULL; } -#ifndef DISABLE_BROWSER -/* Start the help browser for the file browser. */ -void do_browser_help(void) -{ - do_help(&browser_refresh); -} -#endif - /* This function allocates help_text, and stores the help string in it. * help_text should be NULL initially. */ void help_init(void) diff --git a/src/proto.h b/src/proto.h index 831f7481082c5e92ae9ae39e8f192855e8366286..511000919e4bd26441b30ffeba481343dcd896f1 100644 --- a/src/proto.h +++ b/src/proto.h @@ -360,9 +360,6 @@ void thanks_for_all_the_fish(void); #endif /* All functions in help.c. */ -#ifndef DISABLE_BROWSER -void do_browser_help(void); -#endif void do_help_void(void); #ifndef DISABLE_HELP void do_help(void (*refresh_func)(void));