summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/local-def.h1
-rw-r--r--src/config.c11
2 files changed, 0 insertions, 12 deletions
diff --git a/include/local-def.h b/include/local-def.h
index 6d219406..0c48d678 100644
--- a/include/local-def.h
+++ b/include/local-def.h
@@ -170,7 +170,6 @@ typedef struct {
char *console; // console device name (can be a file or a tty)
int localhostOnly;
int httpdPort;
- char *smack; // smack label
char *ldpaths; // list of plugins directories
char *rootdir; // base dir for httpd file download
char *rootbase; // Angular HTML5 base URL
diff --git a/src/config.c b/src/config.c
index f818f7ac..bd03b6ff 100644
--- a/src/config.c
+++ b/src/config.c
@@ -108,12 +108,6 @@ PUBLIC AFB_error configLoadFile (AFB_session * session, AFB_config *cliconfig) {
session->config->rootapi= cliconfig->rootapi;
}
- if (cliconfig->smack == NULL) {
- session->config->smack = "demo";
- } else {
- session->config->smack= cliconfig->smack;
- }
-
if (cliconfig->ldpaths == NULL) {
session->config->ldpaths = PLUGIN_INSTALL_DIR;
} else {
@@ -186,10 +180,6 @@ PUBLIC AFB_error configLoadFile (AFB_session * session, AFB_config *cliconfig) {
session->config->rootapi = strdup (json_object_get_string (value));
}
- if (!cliconfig->smack && json_object_object_get_ex (AFBConfig, "smack", &value)) {
- session->config->smack = strdup (json_object_get_string (value));
- }
-
if (!cliconfig->ldpaths && json_object_object_get_ex (AFBConfig, "plugins", &value)) {
session->config->ldpaths = strdup (json_object_get_string (value));
}
@@ -255,7 +245,6 @@ PUBLIC void configStoreFile (AFB_session * session) {
json_object_object_add (AFBConfig, "rootdir" , json_object_new_string (session->config->rootdir));
json_object_object_add (AFBConfig, "rootapi" , json_object_new_string (session->config->rootapi));
json_object_object_add (AFBConfig, "rootbase" , json_object_new_string (session->config->rootbase));
- json_object_object_add (AFBConfig, "smack" , json_object_new_string (session->config->smack));
json_object_object_add (AFBConfig, "plugins" , json_object_new_string (session->config->ldpaths));
json_object_object_add (AFBConfig, "sessiondir" , json_object_new_string (session->config->sessiondir));
json_object_object_add (AFBConfig, "pidfile" , json_object_new_string (session->config->pidfile));