nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 55543ad42f794095fc7d4bde1ef927686f1f3497
parent bb06fae40313387d1a6bde600675d9942d9feb1b
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed, 26 Mar 2014 20:48:51 +0000

Removing the superfluous function 'do_browser_help()'.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4687 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 1+
Msrc/browser.c | 4++--
Msrc/help.c | 8--------
Msrc/proto.h | 3---
4 files changed, 3 insertions(+), 13 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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));