From 55543ad42f794095fc7d4bde1ef927686f1f3497 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 26 Mar 2014 20:48:51 +0000 Subject: [PATCH] Removing the superfluous function 'do_browser_help()'. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4687 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/browser.c | 4 ++-- src/help.c | 8 -------- src/proto.h | 3 --- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index f2460b01..a025073f 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 . * configure.ac - Clean up most of the --with/--enable flags: diff --git a/src/browser.c b/src/browser.c index 28ff1843..d62e881d 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 9d81ea00..429a51f6 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 831f7481..51100091 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)); -- 2.39.5