diff options
author | Érico Rolim <erico.erc@gmail.com> | 2020-05-21 00:46:28 -0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-21 10:57:00 +0200 |
commit | 1d3681f5213535c1f47ed8bd0cddb7df775dd75e (patch) | |
tree | b9fce1efbd9b479832b0f1d3210602ec77e876b5 /sway/config.c | |
parent | 06fc42359bf155f81b559637e468b29266104d8f (diff) |
Remove code related to the security features
- Remove struct definitions
- Remove struct members
- Remove initializations and frees
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 8 |
1 files changed, 0 insertions, 8 deletions
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 = |