Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
runstate: drop unused runstate_store()
The function is unused since previous commit. Drop it.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20230517123752.21615-4-vsementsov@yandex-team.ru>
Signed-off-by: Juan Quintela <quintela@redhat.com>
  • Loading branch information
Vladimir Sementsov-Ogievskiy authored and Juan Quintela committed Jun 1, 2023
1 parent c33f182 commit e76005a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion include/sysemu/runstate.h
Expand Up @@ -9,7 +9,6 @@ void runstate_set(RunState new_state);
RunState runstate_get(void);
bool runstate_is_running(void);
bool runstate_needs_reset(void);
bool runstate_store(char *str, size_t size);

typedef void VMChangeStateHandler(void *opaque, bool running, RunState state);

Expand Down
12 changes: 0 additions & 12 deletions softmmu/runstate.c
Expand Up @@ -175,18 +175,6 @@ bool runstate_check(RunState state)
return current_run_state == state;
}

bool runstate_store(char *str, size_t size)
{
const char *state = RunState_str(current_run_state);
size_t len = strlen(state) + 1;

if (len > size) {
return false;
}
memcpy(str, state, len);
return true;
}

static void runstate_init(void)
{
const RunStateTransition *p;
Expand Down

0 comments on commit e76005a

Please sign in to comment.