summaryrefslogtreecommitdiffstats
path: root/common/state
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-03-23 15:08:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-31 18:43:53 +0200
commit33fa52317e6343183501a5b81907ca79081fee59 (patch)
treea7224d1a128360591f3e7afa87f89e922e19973c /common/state
parent38db53de7a9716e3fe2560c89afe2172b04e3d5e (diff)
downloadbarebox-33fa52317e6343183501a5b81907ca79081fee59.tar.gz
barebox-33fa52317e6343183501a5b81907ca79081fee59.tar.xz
state: backend: remove .get_packed_len
.get_packed_len isn't implemented by any backend, so remove the hook and its potential caller. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state')
-rw-r--r--common/state/backend.c3
-rw-r--r--common/state/state.h2
2 files changed, 0 insertions, 5 deletions
diff --git a/common/state/backend.c b/common/state/backend.c
index 5235bb0283..6b06c845f0 100644
--- a/common/state/backend.c
+++ b/common/state/backend.c
@@ -74,9 +74,6 @@ int state_load(struct state *state)
int ret;
struct state_backend *backend = &state->backend;
- if (backend->format->get_packed_len)
- len_hint = backend->format->get_packed_len(backend->format,
- state);
ret = state_storage_read(&backend->storage, backend->format,
state->magic, &buf, &len, len_hint);
if (ret) {
diff --git a/common/state/state.h b/common/state/state.h
index bc6917de61..0197cb839a 100644
--- a/common/state/state.h
+++ b/common/state/state.h
@@ -53,8 +53,6 @@ struct state_backend_format {
uint8_t ** buf, ssize_t * len);
int (*unpack) (struct state_backend_format * format,
struct state * state, const uint8_t * buf, ssize_t len);
- ssize_t(*get_packed_len) (struct state_backend_format * format,
- struct state * state);
void (*free) (struct state_backend_format * format);
const char *name;
};