rcxml: remove "[bind]" message

This commit is contained in:
Johan Malm 2020-08-11 21:12:02 +01:00
parent ce2dc46855
commit f635d834ee

View file

@ -42,18 +42,14 @@ static void fill_keybind(char *nodename, char *content)
if (!content)
return;
rstrip(nodename, ".keybind.keyboard");
if (!strcmp(nodename, "key")) {
if (!strcmp(nodename, "key"))
current_keybind = keybind_add(content);
fprintf(stderr, "[bind] %s: ", content);
}
/* We expect <keybind key=""> to come first */
BUG_ON(!current_keybind);
if (!strcmp(nodename, "name.action")) {
current_keybind->action = strdup(content);
fprintf(stderr, "%s", content);
} else if (!strcmp(nodename, "command.action")) {
current_keybind->command = strdup(content);
fprintf(stderr, " - %s", content);
}
}
@ -198,7 +194,6 @@ static void xml_tree_walk(xmlNode *node)
in_keybind = true;
traverse(n);
in_keybind = false;
fprintf(stderr, "\n");
continue;
}
traverse(n);