From: Benno Schulenberg Date: Fri, 28 Feb 2014 19:53:55 +0000 (+0000) Subject: Removing unused function 'free_shortcutage'. X-Git-Tag: v2.3.3~303 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=919c9bdbbb2de7cd32bba0855569b610724b412a;p=nano.git Removing unused function 'free_shortcutage'. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4627 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 43530a1b..a4efa3c7 100644 --- 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 * src/nano.c (do_toggle) - Constify a char pointer, to fix diff --git a/src/global.c b/src/global.c index 461652bf..59320a38 100644 --- 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 index 07c7ae64..6f26c0e8 100644 --- 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