]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'get_key_action'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 14 Sep 2021 01:47:18 +0000 (18:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Sep 2021 00:13:00 +0000 (17:13 -0700)
cmd/smyrna/hotkeymap.c
cmd/smyrna/hotkeymap.h

index d366a0e8084ee2995330c6d5156c9c3f1b4f2510..b20e43ea1cf6bf06f8459dde0f3c2bc23b879fec 100644 (file)
@@ -162,18 +162,6 @@ void load_mouse_actions(ViewInfo * v)
     free(action_file);
 }
 
-int get_key_action(ViewInfo * v, int key)
-{
-    int ind = 0;
-    for (; ind < v->mouse_action_count; ind++) {
-
-       if (v->mouse_actions[ind].hotkey == key)
-           return v->mouse_actions[ind].action;
-    }
-    return -1;
-}
-
-
 int get_mode(ViewInfo * v)
 {
     int ind = 0;
index a45670eabb784f108cc83adc8249e6271c6e4be4..19d4f2563bad15f6a0d648998cf3ea14f94e8ed2 100644 (file)
@@ -37,4 +37,3 @@
 extern void load_mouse_actions (ViewInfo* v);
 
 extern int get_mode(ViewInfo* v);
-extern int get_key_action(ViewInfo* v,int key);