From 96e04bfa1a4334592dfcd93634c41dbd479364e3 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 12 Nov 2025 14:48:36 -0800 Subject: [PATCH] Remove unused ASTSectionImporter entry point (NFC) This was introduced as a temporary measure in https://github.com/swiftlang/swift/pull/67833 --- .../swift/ASTSectionImporter/ASTSectionImporter.h | 6 ------ lib/ASTSectionImporter/ASTSectionImporter.cpp | 14 -------------- 2 files changed, 20 deletions(-) diff --git a/include/swift/ASTSectionImporter/ASTSectionImporter.h b/include/swift/ASTSectionImporter/ASTSectionImporter.h index 473d5873c1492..51c74a0584562 100644 --- a/include/swift/ASTSectionImporter/ASTSectionImporter.h +++ b/include/swift/ASTSectionImporter/ASTSectionImporter.h @@ -64,11 +64,5 @@ namespace swift { parseASTSection(MemoryBufferSerializedModuleLoader &Loader, StringRef Data, const llvm::Triple &filter); - // An old version temporarily left for remaining call site. - // TODO: remove this once the other version is committed and used. - bool parseASTSection(MemoryBufferSerializedModuleLoader &Loader, - StringRef Data, const llvm::Triple &filter, - SmallVectorImpl &foundModules); - } #endif diff --git a/lib/ASTSectionImporter/ASTSectionImporter.cpp b/lib/ASTSectionImporter/ASTSectionImporter.cpp index 1384630b739f2..dca7856fe402a 100644 --- a/lib/ASTSectionImporter/ASTSectionImporter.cpp +++ b/lib/ASTSectionImporter/ASTSectionImporter.cpp @@ -104,17 +104,3 @@ swift::parseASTSection(MemoryBufferSerializedModuleLoader &Loader, return foundModules; } - -bool swift::parseASTSection(MemoryBufferSerializedModuleLoader &Loader, - StringRef buf, - const llvm::Triple &filter, - SmallVectorImpl &foundModules) { - auto Result = parseASTSection(Loader, buf, filter); - if (auto E = Result.takeError()) { - llvm::dbgs() << toString(std::move(E)); - return false; - } - for (auto m : *Result) - foundModules.push_back(m); - return true; -}