diff --git a/lld/MachO/ObjC.cpp b/lld/MachO/ObjC.cpp index ff13e8eb4b5ce..9b454c1e6ac4f 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.