From 44925472044085c265c25527fb96f95a307ce4f1 Mon Sep 17 00:00:00 2001 From: Simmo Saan Date: Sat, 3 Jun 2017 16:24:17 +0300 Subject: [PATCH] gui: remove callback unused after 0b2be21f1f42c2a1b0c200b339d7d2e59595da4c --- src/gui/gui-key.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/gui/gui-key.c b/src/gui/gui-key.c index 1fcfcb82c..f2e7c0ab9 100644 --- a/src/gui/gui-key.c +++ b/src/gui/gui-key.c @@ -1006,28 +1006,6 @@ gui_key_focus_matching (struct t_gui_key *key, return match[0] && match[1]; } -/* - * Callback for replacing values in string with a hashtable. - */ - -char * -gui_key_focus_command_replace_cb (void *data, const char *text) -{ - struct t_hashtable *ptr_hashtable; - const char *ptr_value; - - ptr_hashtable = (struct t_hashtable *)data; - - if (ptr_hashtable) - { - ptr_value = hashtable_get (ptr_hashtable, text); - if (ptr_value) - return strdup (ptr_value); - } - - return NULL; -} - /* * Runs command according to focus. *