From nobody Sun Nov 24 03:36:51 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=treblig.org ARC-Seal: i=1; a=rsa-sha256; t=1726678419; cv=none; d=zohomail.com; s=zohoarc; b=BBr6shaBWlTW88nQlW803ehlTUYXHs3/sRmXW7ktl06eZN6hu6CB7vkSlegbl1EK4EmiPMIvJUhqwvq93RaF4RNtssXSmpU8OlybEvBr65vj7x5ADOUBLUaRjkpbEmrUMcuC/TwYLZX7O4umvRqPRbLArjiAFk59tf6Ox69M2WQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1726678419; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=DeMsBehUtFKVwAO7DEZvGx8WTNJ0TsF1r2iYur2FeqE=; b=NBnyiczXc7rLOOczgf5/Di+nz5Oa5iQrPgjcO+simbXpSU5i5t/Cu9husCPJn5teaN+63vBoiU7pfxlRPy/CyCDBVqdADVLdFAfWbJhor+r0Zw+JlX9bbJWrQP35FD1k9/NDErQVCNNdtrmw2SFZ8hb0Yt6bV5NqeNIM6JRLNp4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1726678419500846.0360168305876; Wed, 18 Sep 2024 09:53:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqxvp-0008K4-4E; Wed, 18 Sep 2024 12:53:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqxvl-0008AS-E4; Wed, 18 Sep 2024 12:53:29 -0400 Received: from mx.treblig.org ([2a00:1098:5b::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqxvj-0007vF-MH; Wed, 18 Sep 2024 12:53:29 -0400 Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sqxvg-006JyL-25; Wed, 18 Sep 2024 16:53:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=DeMsBehUtFKVwAO7DEZvGx8WTNJ0TsF1r2iYur2FeqE=; b=aQ7Ds+t6Dh1aeD1w 6XoyBuM4W5y3DqA7LGNGhCvW/DSJml9Q1VAnqHITbltOJDgWb5Jx5KI90FcjVgXn76f7hNAfHSvUo AXDFy+h6JKLasSPg1IotlXPKT6Ef8SPXSk0wC2kQwD8f9XJrdZYe23F+Ez8TJZc9DKbieGDVAV9UY hNosjW4+4YAMyYP6cTA4ZpmD7CouBSOK6HpsZ8r7L3W3Iss/19DEd4/KIKEG5PLL6lzAf57Z4R0IA cBn0HlIwhzrOVI+zPWRPJSjLCANm3JvXm1UZrlr1QHzaAPs3sieEKtomQB8Itce9Be3pKVp4r4+7X it6aGYHbYuYKchC+4w==; From: dave@treblig.org To: philmd@linaro.org, qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, "Dr. David Alan Gilbert" Subject: [PATCH] util/cutils: Remove unused qemu_get_exec_dir Date: Wed, 18 Sep 2024 17:53:23 +0100 Message-ID: <20240918165323.179683-1-dave@treblig.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1098:5b::1; envelope-from=dave@treblig.org; helo=mx.treblig.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @treblig.org) X-ZM-MESSAGEID: 1726678421635116600 Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" qemu_get_exec_dir has been unused since commit: 5bebe03f51 ("util/cutils: Clean up global variable shadowing in get_reloc= ated_path()") Remove it, and fix up a comment that pointed to it. Signed-off-by: Dr. David Alan Gilbert --- 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); =20 /* 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); =20 -/* 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 relocate= d. 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 } =20 -const char *qemu_get_exec_dir(void) -{ - return exec_dir; -} - char *get_relocated_path(const char *dir) { size_t prefix_len =3D strlen(CONFIG_PREFIX); --=20 2.46.0