[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 7/8] util: Remove qemu_get_local_state_dir()
From: |
Akihiko Odaki |
Subject: |
[PATCH v3 7/8] util: Remove qemu_get_local_state_dir() |
Date: |
Thu, 21 Sep 2023 16:54:21 +0900 |
There are no users of the function anymore.
Signed-off-by: Akihiko Odaki <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 bb857c910f..cc585447ef 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -628,14 +628,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 0c82717be5..f3054ad2cd 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -267,12 +267,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 38df7b57b5..f93c3bff8e 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.41.0
- [PATCH v3 0/8] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 1/8] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 2/8] ivshmem-server: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 3/8] contrib/rdmacm-mux: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 4/8] qga: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 5/8] scsi: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 6/8] module: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 7/8] util: Remove qemu_get_local_state_dir(),
Akihiko Odaki <=
- [PATCH v3 8/8] spice-app: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21