Commit 919c9bdb authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Removing unused function 'free_shortcutage'.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4627 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 1 addition and 13 deletions
+1 -13
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* src/global.c (strtosc) - Correct a misspelled keyword. * src/global.c (strtosc) - Correct a misspelled keyword.
* src/rcfile.c (check_vitals_mapped) - Actually translate a * src/rcfile.c (check_vitals_mapped) - Actually translate a
helpful message, and reword it somewhat for clarity. helpful message, and reword it somewhat for clarity.
* src/global.c - Remove unused function 'free_shortcutage'.
2014-02-28 Eitan Adler <lists@eitanadler.com> 2014-02-28 Eitan Adler <lists@eitanadler.com>
* src/nano.c (do_toggle) - Constify a char pointer, to fix * src/nano.c (do_toggle) - Constify a char pointer, to fix
......
...@@ -1336,18 +1336,6 @@ void set_spell_shortcuts(void) ...@@ -1336,18 +1336,6 @@ void set_spell_shortcuts(void)
#endif #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) const subnfunc *sctofunc(sc *s)
{ {
subnfunc *f; subnfunc *f;
......
...@@ -356,7 +356,6 @@ void sc_init_one(shortcut **shortcutage, int ctrlval, const char *desc ...@@ -356,7 +356,6 @@ void sc_init_one(shortcut **shortcutage, int ctrlval, const char *desc
, int metaval, int funcval, int miscval, bool view, void , int metaval, int funcval, int miscval, bool view, void
(*func)(void)); (*func)(void));
void shortcut_init(bool unjustify); void shortcut_init(bool unjustify);
void free_shortcutage(shortcut **shortcutage);
#ifdef DEBUG #ifdef DEBUG
void thanks_for_all_the_fish(void); void thanks_for_all_the_fish(void);
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment