From e5d4099e2274288b02c065975130541ec4fd9015 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Thu, 18 Apr 2019 16:37:30 +0200 Subject: Remove obsolete variable set for 'afb_helpers' Remove obsolete global variable set for 'afb_helpers'. BUG-AGL: SPEC-2329 Change-Id: I41ec3d486a893a940cd96779d07ab61799a76e13 Signed-off-by: Jonathan Aillet --- src/4a-hal-manager/4a-hal-manager.c | 9 --------- src/4a-internals-hal/4a-internals-hal-api-loader.c | 9 --------- 2 files changed, 18 deletions(-) diff --git a/src/4a-hal-manager/4a-hal-manager.c b/src/4a-hal-manager/4a-hal-manager.c index ce1aed5..cd6f981 100644 --- a/src/4a-hal-manager/4a-hal-manager.c +++ b/src/4a-hal-manager/4a-hal-manager.c @@ -29,9 +29,6 @@ #include "4a-hal-manager.h" #include "4a-hal-manager-cb.h" -// Default api to print log when apihandle not available -afb_api_t AFB_default; - /******************************************************************************* * HAL Manager verbs table * ******************************************************************************/ @@ -61,9 +58,6 @@ static int HalMgrInitApi(afb_api_t apiHandle) if(! apiHandle) return -1; - // Hugely hack to make all V2 AFB_DEBUG to work in fileutils - AFB_default = apiHandle; - // Retrieve section config from api handle halMgrData = (struct HalMgrData *) afb_api_get_userdata(apiHandle); if(! halMgrData) @@ -134,9 +128,6 @@ int afbBindingEntry(afb_api_t apiHandle) if(! apiHandle) return -1; - // Hugely hack to make all V2 AFB_DEBUG to work in fileutils - AFB_default = apiHandle; - AFB_API_NOTICE(apiHandle, "Binding start"); halMgrData = (struct HalMgrData *) calloc(1, sizeof(struct HalMgrData)); diff --git a/src/4a-internals-hal/4a-internals-hal-api-loader.c b/src/4a-internals-hal/4a-internals-hal-api-loader.c index 93628eb..9d3912e 100644 --- a/src/4a-internals-hal/4a-internals-hal-api-loader.c +++ b/src/4a-internals-hal/4a-internals-hal-api-loader.c @@ -32,9 +32,6 @@ #include "4a-internals-hal-cb.h" #include "4a-internals-hal-mixer-link.h" -// Default api to print log when apihandle not available -afb_api_t AFB_default; - /******************************************************************************* * Json parsing functions using controller * ******************************************************************************/ @@ -77,9 +74,6 @@ static int InternalHalInitOneApi(afb_api_t apiHandle) if(! apiHandle) return -1; - // Hugely hack to make all V2 AFB_DEBUG to work in fileutils - AFB_default = apiHandle; - // Retrieve section config from api handle ctrlConfig = (CtlConfigT *) afb_api_get_userdata(apiHandle); if(! ctrlConfig) @@ -223,9 +217,6 @@ int InternalHalCreateAllApi(afb_api_t apiHandle, struct HalMgrData *halMgrData) if(! apiHandle || ! halMgrData) return -1; - // Hugely hack to make all V2 AFB_DEBUG to work in fileutils - AFB_default = apiHandle; - AFB_API_NOTICE(apiHandle, "Begining to create all APIs"); dirList = getenv("CONTROL_CONFIG_PATH"); -- cgit 1.2.3-korg