Skip to content

Commit 3f9f797

Browse files
Merge pull request #85466 from adrian-prantl/remove-temp-api
Remove unused ASTSectionImporter entry point (NFC)
2 parents e8004b7 + 96e04bf commit 3f9f797

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

include/swift/ASTSectionImporter/ASTSectionImporter.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,5 @@ namespace swift {
6464
parseASTSection(MemoryBufferSerializedModuleLoader &Loader,
6565
StringRef Data, const llvm::Triple &filter);
6666

67-
// An old version temporarily left for remaining call site.
68-
// TODO: remove this once the other version is committed and used.
69-
bool parseASTSection(MemoryBufferSerializedModuleLoader &Loader,
70-
StringRef Data, const llvm::Triple &filter,
71-
SmallVectorImpl<std::string> &foundModules);
72-
7367
}
7468
#endif

lib/ASTSectionImporter/ASTSectionImporter.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,3 @@ swift::parseASTSection(MemoryBufferSerializedModuleLoader &Loader,
104104

105105
return foundModules;
106106
}
107-
108-
bool swift::parseASTSection(MemoryBufferSerializedModuleLoader &Loader,
109-
StringRef buf,
110-
const llvm::Triple &filter,
111-
SmallVectorImpl<std::string> &foundModules) {
112-
auto Result = parseASTSection(Loader, buf, filter);
113-
if (auto E = Result.takeError()) {
114-
llvm::dbgs() << toString(std::move(E));
115-
return false;
116-
}
117-
for (auto m : *Result)
118-
foundModules.push_back(m);
119-
return true;
120-
}

0 commit comments

Comments
 (0)