commit 331bd7662e7f702716b27a1c9f025eda5251f0ca
parent 009fb2fae65b35de99cb50a6ce79d767bb2d1ec9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 27 Jun 2020 10:23:03 +0200
tweaks: delete a now-unused function
Diffstat:
2 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -460,20 +460,6 @@ const keystruct *first_sc_for(int menu, void (*func)(void))
return NULL;
}
-/* Return the first keycode that is bound to the given function in the
- * current menu, if any; otherwise, return the given default value. */
-int the_code_for(void (*func)(void), int defaultval)
-{
- const keystruct *sc = first_sc_for(currmenu, func);
-
- if (sc == NULL)
- return defaultval;
-
- meta_key = (0x20 <= sc->keycode && sc->keycode <= 0x7E);
-
- return sc->keycode;
-}
-
/* Return the number of entries that can be shown in the given menu. */
size_t shown_entries_for(int menu)
{
diff --git a/src/prototypes.h b/src/prototypes.h
@@ -325,7 +325,6 @@ char *input_tab(char *buf, size_t *place, void (*refresh_func)(void), bool *list
/* Some functions in global.c. */
const keystruct *first_sc_for(int menu, void (*func)(void));
-int the_code_for(void (*func)(void), int defaultval);
size_t shown_entries_for(int menu);
const keystruct *get_shortcut(int *keycode);
functionptrtype func_from_key(int *keycode);