]> git.proxmox.com Git - mirror_qemu.git/blobdiff - os-posix.c
qdev: Don't use dev->id on set_size32() error message
[mirror_qemu.git] / os-posix.c
index 0bfd8e2d3cc94fd52dbad4df8d2a13091fe95c1b..1de2839554ccefc124767dd894f5a0671c563062 100644 (file)
@@ -80,30 +80,6 @@ void os_setup_signal_handling(void)
     sigaction(SIGTERM, &act, NULL);
 }
 
-/*
- * Find a likely location for support files using the location of the binary.
- * When running from the build tree this will be "$bindir/pc-bios".
- * Otherwise, this is CONFIG_QEMU_DATADIR.
- *
- * The caller must use g_free() to free the returned data when it is
- * no longer required.
- */
-char *os_find_datadir(void)
-{
-    g_autofree char *exec_dir = NULL;
-    g_autofree char *dir = NULL;
-
-    exec_dir = qemu_get_exec_dir();
-    g_return_val_if_fail(exec_dir != NULL, NULL);
-
-    dir = g_build_filename(exec_dir, "pc-bios", NULL);
-    if (g_file_test(dir, G_FILE_TEST_IS_DIR)) {
-        return g_steal_pointer(&dir);
-    }
-
-    return g_strdup(CONFIG_QEMU_DATADIR);
-}
-
 void os_set_proc_name(const char *s)
 {
 #if defined(PR_SET_NAME)