From 1d3681f5213535c1f47ed8bd0cddb7df775dd75e Mon Sep 17 00:00:00 2001 From: Érico Rolim Date: Thu, 21 May 2020 00:46:28 -0300 Subject: Remove code related to the security features - Remove struct definitions - Remove struct members - Remove initializations and frees --- sway/config.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sway/config.c') diff --git a/sway/config.c b/sway/config.c index fe811d27..bcf8d56f 100644 --- a/sway/config.c +++ b/sway/config.c @@ -154,9 +154,6 @@ void free_config(struct sway_config *config) { list_free(config->no_focus); list_free(config->active_bar_modifiers); list_free_items_and_destroy(config->config_chain); - list_free(config->command_policies); - list_free(config->feature_policies); - list_free(config->ipc_policies); free(config->floating_scroll_up_cmd); free(config->floating_scroll_down_cmd); free(config->floating_scroll_left_cmd); @@ -327,11 +324,6 @@ static void config_defaults(struct sway_config *config) { color_to_rgba(config->border_colors.background, 0xFFFFFFFF); - // Security - if (!(config->command_policies = create_list())) goto cleanup; - if (!(config->feature_policies = create_list())) goto cleanup; - if (!(config->ipc_policies = create_list())) goto cleanup; - // The keysym to keycode translation struct xkb_rule_names rules = {0}; config->keysym_translation_state = -- cgit v1.2.3