summaryrefslogtreecommitdiffstats
path: root/src/aft.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-10-24 13:29:33 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-24 13:34:35 +0200
commitafa8decdbbc2959a413c1d9d7cd054df4ea4e4ff (patch)
tree84786758b0f8c04ec81d26e1148d360e73ad2447 /src/aft.c
parent23c5406d8243e647201533ecfb46a43a3470fb1d (diff)
Clean the code.
Change-Id: I4111042fe0bb1084c9dcd1b978fa96163bd40f9c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/aft.c')
-rw-r--r--src/aft.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/aft.c b/src/aft.c
index 215309b..01bfaa2 100644
--- a/src/aft.c
+++ b/src/aft.c
@@ -25,8 +25,6 @@
#include "mapis.h"
#define CONTROL_PREFIX "aft"
-// default api to print log when apihandle not avaliable
-afb_api_t AFB_default;
static CtlConfigT *CtrlLoadConfigJson(afb_api_t apiHandle, json_object *configJ);
static CtlConfigT *CtrlLoadConfigFile(afb_api_t apiHandle, const char *configPath);
@@ -106,9 +104,6 @@ static int CtrlLoadStaticVerbs(afb_api_t apiHandle, afb_verb_t *verbs) {
};
static int CtrlInitOneApi(afb_api_t apiHandle) {
- // Hugely hack to make all V2 AFB_DEBUG to work in fileutils
- AFB_default = apiHandle;
-
CtlConfigT *ctrlConfig = afb_api_get_userdata(apiHandle);
return CtlConfigExec(apiHandle, ctrlConfig);
@@ -194,7 +189,6 @@ int afbBindingEntry(afb_api_t apiHandle) {
char *dirList, *afTestRootDir, *path;
const char *envDirList = NULL, *configPath = NULL, *bindingRootDir = NULL;
json_object *settings = afb_api_settings(apiHandle), *bpath = NULL;
- AFB_default = apiHandle;
AFB_API_DEBUG(apiHandle, "Controller in afbBindingEntry");