aboutsummaryrefslogtreecommitdiffstats
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 14:04:11 +0200
commit77ca03276ea3bb12873a1b69b1726d4e99f8dead (patch)
treeefcc305b1daabe5590483447cfb9ea005b632903 /src/aft.c
parentfa5e03a85309ac5b14eb6ef1b2f211539351a88f (diff)
Change-Id: I97f1053940fa78a67c46550063c3b35e802183b1 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");