summaryrefslogtreecommitdiffstats
path: root/common/state
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-11-19 09:34:19 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-11-19 09:45:23 +0100
commit418769972dca8ff6af08eabcf47cfe70aaa3cd43 (patch)
tree0b8a230ee0f6cdb3d4290690b7a0eb45d1639044 /common/state
parent96aff8ed4c2493bcc9b15fe6969259b5314d4628 (diff)
downloadbarebox-418769972dca8ff6af08eabcf47cfe70aaa3cd43.tar.gz
state: remove unused function
state_find_type() is unused and doesn't have a prototype. Remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state')
-rw-r--r--common/state/state_variables.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/common/state/state_variables.c b/common/state/state_variables.c
index abd714c..269d175 100644
--- a/common/state/state_variables.c
+++ b/common/state/state_variables.c
@@ -492,19 +492,6 @@ struct variable_type *state_find_type_by_name(const char *name)
return NULL;
}
-struct variable_type *state_find_type(const enum state_variable_type type)
-{
- int i;
-
- for (i = 0; i < ARRAY_SIZE(types); i++) {
- if (type == types[i].type) {
- return &types[i];
- }
- }
-
- return NULL;
-}
-
struct state_variable *state_find_var(struct state *state, const char *name)
{
struct state_variable *sv;