Remove undocumented feature

This commit is contained in:
project-repo 2023-04-03 21:29:33 +02:00
commit f8df676572
3 changed files with 0 additions and 21 deletions

View file

@ -1798,9 +1798,6 @@ run_action(enum keybinding_action action, struct cg_server *server,
server->curr_output->workspaces[server->curr_output->curr_workspace]
->focused_tile->view);
break;
case KEYBINDING_FOCUS_TILE:
keybinding_focus_tile(server, data.u);
break;
default: {
wlr_log(WLR_ERROR,
"run_action was called with a value not present in \"enum "

View file

@ -74,7 +74,6 @@ struct cg_server;
KEYBINDING(KEYBINDING_FOCUS_RIGHT, focusright) \
KEYBINDING(KEYBINDING_FOCUS_TOP, focusup) \
KEYBINDING(KEYBINDING_FOCUS_BOTTOM, focusdown) \
KEYBINDING(KEYBINDING_FOCUS_TILE, focus_tile) \
\
KEYBINDING(KEYBINDING_DEFINEKEY, \
definekey) /* data.kb is the keybinding definition */ \

17
parse.c
View file

@ -786,23 +786,6 @@ parse_command(struct cg_server *server, struct keybinding *keybinding,
keybinding->action = KEYBINDING_SHOW_INFO;
} else if(strcmp(action, "close") == 0) {
keybinding->action = KEYBINDING_CLOSE_VIEW;
} else if(strcmp(action, "focus_tile") == 0) {
keybinding->action = KEYBINDING_FOCUS_TILE;
char *nws_str = strtok_r(NULL, " ", &saveptr);
if(nws_str == NULL) {
*errstr = log_error(
"Expected argument for \"focus_tile\" action, got none.");
return -1;
}
long tile_id = strtol(nws_str, NULL, 10);
if(tile_id < 1) {
*errstr = log_error(
"Tile id for focus_tile must be a positive integer. Got %l\n",
tile_id);
return -1;
}
keybinding->data.u = tile_id;
} else if(strcmp(action, "focus") == 0) {
keybinding->action = KEYBINDING_CYCLE_TILES;
keybinding->data.b = false;