summaryrefslogtreecommitdiffstats
path: root/include/globalvar.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-04-07 08:43:59 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-07 08:44:32 +0200
commitc690427ddfd8f4eb6eda55f493e9d3727cbf46a6 (patch)
treec2c573e8171a5c47ac9d7603e7d04a92881d2d43 /include/globalvar.h
parent9653eefe40c7945a85b8c17657f17dc9e2ed3776 (diff)
downloadbarebox-c690427ddfd8f4eb6eda55f493e9d3727cbf46a6.tar.gz
barebox-c690427ddfd8f4eb6eda55f493e9d3727cbf46a6.tar.xz
globalvar: remove unused globalvar_add()
globalvar_add() is unused in the tree. Remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/globalvar.h')
-rw-r--r--include/globalvar.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/globalvar.h b/include/globalvar.h
index 80bc53e680..df43f1fe66 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -11,10 +11,6 @@ extern struct device_d global_device;
#ifdef CONFIG_GLOBALVAR
int globalvar_add_simple(const char *name, const char *value);
-int globalvar_add(const char *name,
- int (*set)(struct device_d *dev, struct param_d *p, const char *val),
- const char *(*get)(struct device_d *, struct param_d *p),
- unsigned long flags);
void globalvar_remove(const char *name);
char *globalvar_get_match(const char *match, const char *separator);
void globalvar_set_match(const char *match, const char *val);
@@ -80,14 +76,6 @@ static inline int globalvar_add_simple_ip(const char *name,
return 0;
}
-static inline int globalvar_add(const char *name,
- int (*set)(struct device_d *dev, struct param_d *p, const char *val),
- const char *(*get)(struct device_d *, struct param_d *p),
- unsigned long flags)
-{
- return 0;
-}
-
static inline void globalvar_remove(const char *name) {}
static inline void globalvar_print(void) {}