From afa8decdbbc2959a413c1d9d7cd054df4ea4e4ff Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 24 Oct 2018 13:29:33 +0200 Subject: Clean the code. Change-Id: I4111042fe0bb1084c9dcd1b978fa96163bd40f9c Signed-off-by: Romain Forlot --- src/aft.c | 6 ------ 1 file changed, 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"); -- cgit 1.2.3-korg