There are no users of the function anymore. Signed-off-by: Akihiko Odaki --- include/qemu/osdep.h | 8 -------- util/oslib-posix.c | 6 ------ util/oslib-win32.c | 10 ---------- 3 files changed, 24 deletions(-) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index d64cebdf5ec5..47436e0e027f 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -709,14 +709,6 @@ bool qemu_set_blocking(int fd, bool block, Error **errp); */ void qemu_clear_cloexec(int fd); -/* Return a dynamically allocated directory path that is appropriate for storing - * local state. - * - * The caller is responsible for releasing the value returned with g_free() - * after use. - */ -char *qemu_get_local_state_dir(void); - /** * qemu_get_runtime_dir: * diff --git a/util/oslib-posix.c b/util/oslib-posix.c index d03399063999..69db96ab9556 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -314,12 +314,6 @@ void qemu_clear_cloexec(int fd) assert(f != -1); } -char * -qemu_get_local_state_dir(void) -{ - return get_relocated_path(CONFIG_QEMU_LOCALSTATEDIR); -} - char * qemu_get_runtime_dir(void) { diff --git a/util/oslib-win32.c b/util/oslib-win32.c index 5887cea12aec..e052f3a9deb1 100644 --- a/util/oslib-win32.c +++ b/util/oslib-win32.c @@ -230,16 +230,6 @@ int qemu_get_thread_id(void) return GetCurrentThreadId(); } -char * -qemu_get_local_state_dir(void) -{ - const char * const *data_dirs = g_get_system_data_dirs(); - - g_assert(data_dirs && data_dirs[0]); - - return g_strdup(data_dirs[0]); -} - char * qemu_get_runtime_dir(void) { -- 2.54.0