Skip to content

Conversation

@chestnykh
Copy link
Contributor

Host compiler (gcc-14) warns about unused function

@llvmbot
Copy link
Member

llvmbot commented Dec 14, 2024

@llvm/pr-subscribers-lld

@llvm/pr-subscribers-lld-macho

Author: Dmitry Chestnykh (chestnykh)

Changes

Host compiler (gcc-14) warns about unused function


Full diff: https://github.com/llvm/llvm-project/pull/119961.diff

1 Files Affected:

  • (modified) lld/MachO/ObjC.cpp (-14)
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.

@chestnykh chestnykh closed this Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants