Remove unused ASTSectionImporter entry point (NFC)

This was introduced as a temporary measure in https://github.com/swiftlang/swift/pull/67833
This commit is contained in:
Adrian Prantl
2025-11-12 14:48:36 -08:00
parent 3067602eb7
commit 96e04bfa1a
2 changed files with 0 additions and 20 deletions

View File

@@ -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<std::string> &foundModules);
}
#endif

View File

@@ -104,17 +104,3 @@ swift::parseASTSection(MemoryBufferSerializedModuleLoader &Loader,
return foundModules;
}
bool swift::parseASTSection(MemoryBufferSerializedModuleLoader &Loader,
StringRef buf,
const llvm::Triple &filter,
SmallVectorImpl<std::string> &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;
}