From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128028 invoked by alias); 24 Feb 2019 17:18:17 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 128011 invoked by uid 89); 24 Feb 2019 17:18:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: gnu.wildebeest.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (212.238.236.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 24 Feb 2019 17:18:16 +0000 Received: from librem.wildebeest.org (deer0x15.wildebeest.org [172.31.17.151]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 542BF302BB43; Sun, 24 Feb 2019 18:18:14 +0100 (CET) Received: by librem.wildebeest.org (Postfix, from userid 1000) id 3787D13FFE4; Sun, 24 Feb 2019 18:18:14 +0100 (CET) From: Mark Wielaard To: elfutils-devel@sourceware.org Cc: Mark Wielaard Subject: [PATCH] libelf: Remove unused __elf_xfctstof. Date: Sun, 24 Feb 2019 17:18:00 -0000 Message-Id: <20190224171811.25892-1-mark@klomp.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Flag: NO X-IsSubscribed: yes X-SW-Source: 2019-q1/txt/msg00169.txt.bz2 __elf_xfctstof is only used in case the memory size and file size of ELF data structures are different. This is never the case. Signed-off-by: Mark Wielaard --- libelf/ChangeLog | 5 +++++ libelf/gelf_xlate.c | 4 ---- libelf/libelfP.h | 2 -- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 28cab9c40..a2e4ee900 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,8 @@ +2019-02-24 Mark Wielaard + + * gelf_xlate.c (__elf_xfctstof): Remove alias. + * libelfP.h (__elf_xfctstof): Remove definition. + 2019-02-24 Mark Wielaard * elf32_fsize.c (local_strong_alias): Remove definition. diff --git a/libelf/gelf_xlate.c b/libelf/gelf_xlate.c index f6f496d47..b9e7fd655 100644 --- a/libelf/gelf_xlate.c +++ b/libelf/gelf_xlate.c @@ -208,7 +208,3 @@ const xfct_t __elf_xfctstom[ELFCLASSNUM - 1][ELF_T_NUM] = [ELF_T_GNUHASH] = elf_cvt_gnuhash } }; -/* For now we only handle the case where the memory representation is the - same as the file representation. Should this change we have to define - separate functions. For now reuse them. */ -strong_alias (__elf_xfctstom, __elf_xfctstof) diff --git a/libelf/libelfP.h b/libelf/libelfP.h index 3a96a3b01..513441422 100644 --- a/libelf/libelfP.h +++ b/libelf/libelfP.h @@ -413,8 +413,6 @@ typedef void (*xfct_t) (void *, const void *, size_t, int); /* The table with the function pointers. */ extern const xfct_t __elf_xfctstom[ELFCLASSNUM - 1][ELF_T_NUM] attribute_hidden; -extern const xfct_t __elf_xfctstof[ELFCLASSNUM - 1][ELF_T_NUM] - attribute_hidden; /* Array with sizes of the external types indexed by ELF version, binary -- 2.20.1