mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user