This ports the following barebox commit

| commit 418769972dca8ff6af08eabcf47cfe70aaa3cd43
| Author: Sascha Hauer <s.ha...@pengutronix.de>
| Date:   Mon Nov 19 09:34:19 2018 +0100
|
|     state: remove unused function
|
|     state_find_type() is unused and doesn't have a prototype. Remove it.
|
|     Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de>

Signed-off-by: Marco Felsch <m.fel...@pengutronix.de>
---
 src/barebox-state/state_variables.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/barebox-state/state_variables.c 
b/src/barebox-state/state_variables.c
index 228a822..66c66f3 100644
--- a/src/barebox-state/state_variables.c
+++ b/src/barebox-state/state_variables.c
@@ -493,19 +493,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;
-- 
2.30.2


Reply via email to