nano

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

commit 919c9bdbbb2de7cd32bba0855569b610724b412a
parent fe267f61d91047fd930681962c3c618c7ba7e232
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 28 Feb 2014 19:53:55 +0000

Removing unused function 'free_shortcutage'.


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

Diffstat:
MChangeLog | 1+
Msrc/global.c | 12------------
Msrc/proto.h | 1-
3 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -5,6 +5,7 @@ * src/global.c (strtosc) - Correct a misspelled keyword. * src/rcfile.c (check_vitals_mapped) - Actually translate a helpful message, and reword it somewhat for clarity. + * src/global.c - Remove unused function 'free_shortcutage'. 2014-02-28 Eitan Adler <lists@eitanadler.com> * src/nano.c (do_toggle) - Constify a char pointer, to fix diff --git a/src/global.c b/src/global.c @@ -1336,18 +1336,6 @@ void set_spell_shortcuts(void) #endif -/* Free the given shortcut. */ -void free_shortcutage(shortcut **shortcutage) -{ - assert(shortcutage != NULL); - - while (*shortcutage != NULL) { - shortcut *ps = *shortcutage; - *shortcutage = (*shortcutage)->next; - free(ps); - } -} - const subnfunc *sctofunc(sc *s) { subnfunc *f; diff --git a/src/proto.h b/src/proto.h @@ -356,7 +356,6 @@ void sc_init_one(shortcut **shortcutage, int ctrlval, const char *desc , int metaval, int funcval, int miscval, bool view, void (*func)(void)); void shortcut_init(bool unjustify); -void free_shortcutage(shortcut **shortcutage); #ifdef DEBUG void thanks_for_all_the_fish(void); #endif