[lld] [LLD][MachO][NFC] Remove unused function (PR #119961)
Dmitry Chestnykh via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 14 03:54:25 PST 2024
https://github.com/chestnykh created https://github.com/llvm/llvm-project/pull/119961
Host compiler (gcc-14) warns about unused function
>From 66e59ac5c42abcb24d4559fcd4ab7a07cbfd36ea Mon Sep 17 00:00:00 2001
From: Dmitry Chestnykh <dm.chestnykh at gmail.com>
Date: Sat, 14 Dec 2024 14:59:27 +0300
Subject: [PATCH] [LLD][MachO][NFC] Remove unused function
---
lld/MachO/ObjC.cpp | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/lld/MachO/ObjC.cpp b/lld/MachO/ObjC.cpp
index ff13e8eb4b5ce0..9b454c1e6ac4f3 100644
--- a/lld/MachO/ObjC.cpp
+++ b/lld/MachO/ObjC.cpp
@@ -442,10 +442,6 @@ class ObjcCategoryMerger {
PointerListInfo &ptrList,
SourceLanguage sourceLang);
- PointerListInfo parseProtocolListInfo(const ConcatInputSection *isec,
- uint32_t secOffset,
- SourceLanguage sourceLang);
-
bool parsePointerListInfo(const ConcatInputSection *isec, uint32_t secOffset,
PointerListInfo &ptrList);
@@ -719,16 +715,6 @@ void ObjcCategoryMerger::parseProtocolListInfo(
"Protocol list end offset does not match expected size");
}
-// Parse a protocol list and return the PointerListInfo for it
-ObjcCategoryMerger::PointerListInfo
-ObjcCategoryMerger::parseProtocolListInfo(const ConcatInputSection *isec,
- uint32_t secOffset,
- SourceLanguage sourceLang) {
- PointerListInfo ptrList;
- parseProtocolListInfo(isec, secOffset, ptrList, sourceLang);
- return ptrList;
-}
-
// Parse a pointer list that might be linked to ConcatInputSection at a given
// offset. This can be used for instance methods, class methods, instance props
// and class props since they have the same format.
More information about the llvm-commits
mailing list