From a6bc46eea9d7dec6a2b93f85bac2e3737e0c6725 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 21 Jan 2018 12:21:57 -0500 Subject: Remove sway/old/ --- sway/old/commands/bar/icon_theme.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 sway/old/commands/bar/icon_theme.c (limited to 'sway/old/commands/bar/icon_theme.c') diff --git a/sway/old/commands/bar/icon_theme.c b/sway/old/commands/bar/icon_theme.c deleted file mode 100644 index cbfc0be5..00000000 --- a/sway/old/commands/bar/icon_theme.c +++ /dev/null @@ -1,25 +0,0 @@ -#define _XOPEN_SOURCE 500 -#include -#include "sway/commands.h" - -struct cmd_results *bar_cmd_icon_theme(int argc, char **argv) { - const char *cmd_name = "tray_output"; -#ifndef ENABLE_TRAY - return cmd_results_new(CMD_INVALID, cmd_name, "Invalid %s command " - "%s called, but sway was compiled without tray support", - cmd_name, cmd_name); -#else - struct cmd_results *error = NULL; - if ((error = checkarg(argc, cmd_name, EXPECTED_EQUAL_TO, 1))) { - return error; - } - - if (!config->current_bar) { - return cmd_results_new(CMD_FAILURE, cmd_name, "No bar defined."); - } - - config->current_bar->icon_theme = strdup(argv[0]); - - return cmd_results_new(CMD_SUCCESS, NULL, NULL); -#endif -} -- cgit v1.2.3