summaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/sway/config.c b/sway/config.c
index da92030e..23d6ac0d 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -286,28 +286,3 @@ char *do_var_replacement(char *str) {
286 } 286 }
287 return str; 287 return str;
288} 288}
289
290struct workspace_output *wsop_find_workspace(const char *name) {
291 int i, len = config->workspace_outputs->length;
292 struct workspace_output *wsop;
293 for (i = 0; i < len; ++i) {
294 wsop = config->workspace_outputs->items[i];
295 if (strcasecmp(wsop->workspace, name) == 0) {
296 return wsop;
297 }
298 }
299 return NULL;
300}
301
302struct workspace_output *wsop_find_output(const char *name) {
303 int i, len = config->workspace_outputs->length;
304 struct workspace_output *wsop;
305 for (i = 0; i < len; ++i) {
306 wsop = config->workspace_outputs->items[i];
307 if (strcasecmp(wsop->output, name) == 0) {
308 return wsop;
309 }
310 }
311 return NULL;
312}
313