gimp but for windows: a wayland compositor
git clone https://github.com/m-col/wimp
Files | Refs | Readme

Commit e2c2b84258cb437359d23be220f41160e5eba435
Parent: bc59846e4a2d90bbb3dfb39153967966e2e7642b
Author: mcol <mcol@posteo.net>
Date: 2021-03-07 16:13:34 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-03-07 16:13:34 +0000

remove old and unnecessary assign_action function

src/keybind.c Modified

@@ -26,12 +26,6 @@
 };
 
 
-static bool assign_action(char *name, char *args, struct binding *kb, char *response) {
-    // TODO: remove
-    return get_action(name, &kb->action, args, &kb->data, response, kb->key);
-}
-
-
 void free_binding(struct binding *kb) {
     if (kb->data)
 	free(kb->data);
@@ -83,7 +77,7 @@
 	sprintf(response,  "Command malformed/incomplete.");
 	return;
     }
-    if (!assign_action(s, strtok(NULL, "\n\r"), kb, response)) {
+    if (!get_action(s, &kb->action, strtok(NULL, "\n\r"), &kb->data, response, kb->key)) {
 	free(kb);
 	return;
     }