summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-04-18 16:37:30 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-05-24 16:33:30 +0200
commite5d4099e2274288b02c065975130541ec4fd9015 (patch)
tree97d5bac7e65c2367720bdd7ae49d66c5c3d0ea80
parentfcb21344181cd6d487bb59a7e8065a7068a887fd (diff)
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 <jonathan.aillet@iot.bzh>
-rw-r--r--src/4a-hal-manager/4a-hal-manager.c9
-rw-r--r--src/4a-internals-hal/4a-internals-hal-api-loader.c9
2 files changed, 0 insertions, 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");