From f8df676572535e2a78494a8d172ebf93d3b1cc50 Mon Sep 17 00:00:00 2001 From: project-repo Date: Mon, 3 Apr 2023 21:29:33 +0200 Subject: [PATCH] Remove undocumented feature --- keybinding.c | 3 --- keybinding.h | 1 - parse.c | 17 ----------------- 3 files changed, 21 deletions(-) diff --git a/keybinding.c b/keybinding.c index a4fcbef..44ccffb 100644 --- a/keybinding.c +++ b/keybinding.c @@ -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 " diff --git a/keybinding.h b/keybinding.h index ba96c3d..6d6cf87 100644 --- a/keybinding.h +++ b/keybinding.h @@ -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 */ \ diff --git a/parse.c b/parse.c index 93fdbf4..68767c6 100644 --- a/parse.c +++ b/parse.c @@ -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;