[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 6/7] util: Remove qemu_get_local_state_dir()
From: |
Akihiko Odaki |
Subject: |
[PATCH v4 6/7] util: Remove qemu_get_local_state_dir() |
Date: |
Tue, 16 Jul 2024 16:27:36 +0900 |
There are no users of the function anymore.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20230921075425.16738-8-akihiko.odaki@daynix.com>
---
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 fe8609fc1375..189fdf4fb6f9 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -662,14 +662,6 @@ ssize_t qemu_write_full(int fd, const void *buf, size_t
count)
void qemu_set_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 9599509a9aa7..60bbd9786b79 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -272,12 +272,6 @@ int qemu_socketpair(int domain, int type, int protocol,
int sv[2])
return ret;
}
-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 8c5a02ee881d..504a75f548ab 100644
--- a/util/oslib-win32.c
+++ b/util/oslib-win32.c
@@ -229,16 +229,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.45.2
[PATCH v4 2/7] ivshmem-server: Use qemu_get_runtime_dir(), Akihiko Odaki, 2024/07/16
[PATCH v4 4/7] scsi: Use qemu_get_runtime_dir(), Akihiko Odaki, 2024/07/16
[PATCH v4 5/7] module: Use qemu_get_runtime_dir(), Akihiko Odaki, 2024/07/16
[PATCH v4 3/7] qga: Use qemu_get_runtime_dir(), Akihiko Odaki, 2024/07/16
[PATCH v4 6/7] util: Remove qemu_get_local_state_dir(),
Akihiko Odaki <=
[PATCH v4 7/7] spice-app: Use qemu_get_runtime_dir(), Akihiko Odaki, 2024/07/16
Re: [PATCH v4 0/7] util: Introduce qemu_get_runtime_dir(), Michael Tokarev, 2024/07/16
Re: [PATCH v4 0/7] util: Introduce qemu_get_runtime_dir(), Paolo Bonzini, 2024/07/16