aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaiyu <taiyu.len@gmail.com>2015-09-08 10:28:53 -0700
committertaiyu <taiyu.len@gmail.com>2015-09-08 10:28:53 -0700
commit799ff640f8c15dde5f8d65fdd71f91bab7aaa5fe (patch)
tree67d6d26a3028fe43ed6508a58a23d0c2caa9a539
parentaa22dc31132fb7ef504bc90a03a14cc122fcc4e1 (diff)
remove old things
-rw-r--r--sway/commands.c2
-rw-r--r--sway/config.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/sway/commands.c b/sway/commands.c
index edc56466..423b576f 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -1050,7 +1050,7 @@ static int handler_compare(const void *_a, const void *_b) {
return strcasecmp(a->command, b->command);
}
-struct cmd_handler *find_handler(char *line) {
+static struct cmd_handler *find_handler(char *line) {
struct cmd_handler d = { .command=line };
struct cmd_handler *res = bsearch(&d, handlers,
sizeof(handlers) / sizeof(struct cmd_handler),
diff --git a/sway/config.c b/sway/config.c
index 7d3104c7..11394a7c 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -214,12 +214,9 @@ bool load_config(const char *file) {
bool read_config(FILE *file, bool is_active) {
struct sway_config *old_config = config;
- struct sway_mode *default_mode;
config = malloc(sizeof(struct sway_config));
config_defaults(config);
- default_mode = config->current_mode;
-
if (is_active) {
sway_log(L_DEBUG, "Performing configuration file reload");
config->reloading = true;