summaryrefslogtreecommitdiff
path: root/sway/security.c
diff options
context:
space:
mode:
authorÉrico Rolim <[email protected]>2020-05-21 00:46:28 -0300
committerSimon Ser <[email protected]>2020-05-21 10:57:00 +0200
commit1d3681f5213535c1f47ed8bd0cddb7df775dd75e (patch)
treeb9fce1efbd9b479832b0f1d3210602ec77e876b5 /sway/security.c
parent06fc42359bf155f81b559637e468b29266104d8f (diff)
Remove code related to the security features
- Remove struct definitions - Remove struct members - Remove initializations and frees
Diffstat (limited to 'sway/security.c')
-rw-r--r--sway/security.c18
1 files changed, 0 insertions, 18 deletions
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 <stdlib.h>
-#include <string.h>
-#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;
-}