[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 12/22] util/cutils: Remove unused qemu_get_exec_dir
From: |
Michael Tokarev |
Subject: |
[PULL 12/22] util/cutils: Remove unused qemu_get_exec_dir |
Date: |
Fri, 20 Sep 2024 10:41:24 +0300 |
From: "Dr. David Alan Gilbert" <dave@treblig.org>
qemu_get_exec_dir has been unused since commit:
5bebe03f51 ("util/cutils: Clean up global variable shadowing in
get_relocated_path()")
Remove it, and fix up a comment that pointed to it.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
include/qemu/cutils.h | 5 +----
util/cutils.c | 5 -----
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/include/qemu/cutils.h b/include/qemu/cutils.h
index da15547bfb..34a9b9b220 100644
--- a/include/qemu/cutils.h
+++ b/include/qemu/cutils.h
@@ -241,13 +241,10 @@ int uleb128_decode_small(const uint8_t *in, uint32_t *n);
int qemu_pstrcmp0(const char **str1, const char **str2);
/* Find program directory, and save it for later usage with
- * qemu_get_exec_dir().
+ * get_relocated_path().
* Try OS specific API first, if not working, parse from argv0. */
void qemu_init_exec_dir(const char *argv0);
-/* Get the saved exec dir. */
-const char *qemu_get_exec_dir(void);
-
/**
* get_relocated_path:
* @dir: the directory (typically a `CONFIG_*DIR` variable) to be relocated.
diff --git a/util/cutils.c b/util/cutils.c
index 42364039a5..9803f11a59 100644
--- a/util/cutils.c
+++ b/util/cutils.c
@@ -1144,11 +1144,6 @@ void qemu_init_exec_dir(const char *argv0)
#endif
}
-const char *qemu_get_exec_dir(void)
-{
- return exec_dir;
-}
-
char *get_relocated_path(const char *dir)
{
size_t prefix_len = strlen(CONFIG_PREFIX);
--
2.39.5
- [PULL 02/22] linux-user/syscall.c: drop 64 suffix from flock64 &Co, (continued)
- [PULL 02/22] linux-user/syscall.c: drop 64 suffix from flock64 &Co, Michael Tokarev, 2024/09/20
- [PULL 05/22] hw/mips/jazz: fix typo in in-built NIC alias, Michael Tokarev, 2024/09/20
- [PULL 04/22] ppc: fix incorrect spelling of PowerMac, Michael Tokarev, 2024/09/20
- [PULL 06/22] hw/loongarch/virt: Add description for virt machine type, Michael Tokarev, 2024/09/20
- [PULL 07/22] tests/unit: Really build pbkdf test on macOS, Michael Tokarev, 2024/09/20
- [PULL 08/22] hw/virtio/Kconfig: Include vhost-user-scmi only on arm targets, Michael Tokarev, 2024/09/20
- [PULL 09/22] hw/display: Fix mirrored output in dm163, Michael Tokarev, 2024/09/20
- [PULL 10/22] envlist: Remove unused envlist_parse, Michael Tokarev, 2024/09/20
- [PULL 11/22] hw/sysbus: Remove unused sysbus_mmio_unmap, Michael Tokarev, 2024/09/20
- [PULL 13/22] tests/qemu-iotests/testenv: Use the "virt" machine for or1k, Michael Tokarev, 2024/09/20
- [PULL 12/22] util/cutils: Remove unused qemu_get_exec_dir,
Michael Tokarev <=
- [PULL 14/22] tests/qemu-iotests/testenv: Use the "r2d" machine for sh4/sh4eb, Michael Tokarev, 2024/09/20
- [PULL 15/22] tests/functional: Put the or1k_sim test into the slow category, Michael Tokarev, 2024/09/20
- [PULL 16/22] target/hexagon: Rename macros.inc -> macros.h.inc, Michael Tokarev, 2024/09/20
- [PULL 17/22] tests/bench: Rename test_akcipher_keys.inc -> test_akcipher_keys.c.inc, Michael Tokarev, 2024/09/20
- [PULL 18/22] tests/functional: Correct typo in test_netdev_ethtool.py SPDX tag, Michael Tokarev, 2024/09/20
- [PULL 19/22] license: Simplify GPL-2.0-or-later license descriptions, Michael Tokarev, 2024/09/20
- [PULL 21/22] license: Update deprecated SPDX tag GPL-2.0+ to GPL-2.0-or-later, Michael Tokarev, 2024/09/20
- [PULL 20/22] license: Update deprecated SPDX tag LGPL-2.0+ to LGPL-2.0-or-later, Michael Tokarev, 2024/09/20
- [PULL 22/22] license: Update deprecated SPDX tag GPL-2.0 to GPL-2.0-only, Michael Tokarev, 2024/09/20
- Re: [PULL 00/22] Trivial patches for 2024-09-20, Peter Maydell, 2024/09/26