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/security.c | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 sway/security.c (limited to 'sway/security.c') diff --git a/sway/security.c b/sway/security.c deleted file mode 100644 index 6a00229e..00000000 --- a/sway/security.c +++ /dev/null @@ -1,18 +0,0 @@ -#define _POSIX_C_SOURCE 200809L -#include -#include -#include "sway/security.h" - -struct command_policy *alloc_command_policy(const char *command) { - struct command_policy *policy = malloc(sizeof(struct command_policy)); - if (!policy) { - return NULL; - } - policy->command = strdup(command); - if (!policy->command) { - free(policy); - return NULL; - } - policy->context = 0; - return policy; -} -- cgit v1.2.3-54-g00ecf