mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] state: drop unused code and declarations for non-existing functions
@ 2019-09-11 19:27 Uwe Kleine-König
  2019-09-11 19:27 ` [PATCH 2/2] state: provide dummy implementations for some functions when STATE is disabled Uwe Kleine-König
  2019-09-12  6:44 ` [PATCH 1/2] state: drop unused code and declarations for non-existing functions Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2019-09-11 19:27 UTC (permalink / raw)
  To: barebox

state_get_name() is not used and so can be removed.
state_backend_dtb_file() and state_backend_raw_file() were dropped in
c999b507da98 ("state: Refactor state framework").

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 common/state/state.c | 7 -------
 include/state.h      | 5 -----
 2 files changed, 12 deletions(-)

diff --git a/common/state/state.c b/common/state/state.c
index 3f5d43ecbf73..b168387eef0b 100644
--- a/common/state/state.c
+++ b/common/state/state.c
@@ -714,13 +714,6 @@ struct state *state_by_node(const struct device_node *node)
 	return NULL;
 }
 
-int state_get_name(const struct state *state, char const **name)
-{
-	*name = xstrdup(state->name);
-
-	return 0;
-}
-
 int state_read_mac(struct state *state, const char *name, u8 *buf)
 {
 	struct state_variable *svar;
diff --git a/include/state.h b/include/state.h
index 4e995a19efe0..a49155ef2779 100644
--- a/include/state.h
+++ b/include/state.h
@@ -5,17 +5,12 @@
 
 struct state;
 
-int state_backend_dtb_file(struct state *state, const char *of_path,
-		const char *path);
-int state_backend_raw_file(struct state *state, const char *of_path,
-		const char *path, off_t offset, size_t size);
 
 struct state *state_new_from_node(struct device_node *node, bool readonly);
 void state_release(struct state *state);
 
 struct state *state_by_name(const char *name);
 struct state *state_by_node(const struct device_node *node);
-int state_get_name(const struct state *state, char const **name);
 
 int state_load_no_auth(struct state *state);
 int state_load(struct state *state);
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-12  6:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11 19:27 [PATCH 1/2] state: drop unused code and declarations for non-existing functions Uwe Kleine-König
2019-09-11 19:27 ` [PATCH 2/2] state: provide dummy implementations for some functions when STATE is disabled Uwe Kleine-König
2019-09-12  6:44 ` [PATCH 1/2] state: drop unused code and declarations for non-existing functions Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox