[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/10] util: Remove qemu_get_local_state_dir()
From: |
Akihiko Odaki |
Subject: |
[PATCH 09/10] util: Remove qemu_get_local_state_dir() |
Date: |
Thu, 10 Nov 2022 15:23:28 +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 86445aad25..f21ebf2b27 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -557,14 +557,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 9a0b3913ff..b8d79876b2 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -273,12 +273,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 6ad1bb4bac..a32cc5b1be 100644
--- a/util/oslib-win32.c
+++ b/util/oslib-win32.c
@@ -233,16 +233,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.38.1
- [PATCH 00/10] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 01/10] qga: Remove platform GUID definitions, Akihiko Odaki, 2022/11/10
- [PATCH 02/10] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 03/10] ivshmem-server: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 04/10] contrib/rdmacm-mux: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 05/10] qga: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 06/10] scsi: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 07/10] virtiofsd: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 09/10] util: Remove qemu_get_local_state_dir(),
Akihiko Odaki <=
- [PATCH 10/10] spice-app: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 08/10] module: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10