mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[nfc][cxx-interop] Remove dead code in VisitClassTemplateDecl.
This is now handled in the namespace visitor. It will eventually be handled directly in the SILModulePrinter. Refs #38675.
This commit is contained in:
@@ -4562,16 +4562,6 @@ namespace {
|
||||
}
|
||||
|
||||
Decl *VisitClassTemplateDecl(const clang::ClassTemplateDecl *decl) {
|
||||
// When loading a namespace's sub-decls, we won't add template
|
||||
// specilizations, so make sure to do that here.
|
||||
for (auto spec : decl->specializations()) {
|
||||
if (auto importedSpec = Impl.importDecl(spec, getVersion())) {
|
||||
if (auto namespaceDecl =
|
||||
dyn_cast<EnumDecl>(importedSpec->getDeclContext()))
|
||||
namespaceDecl->addMember(importedSpec);
|
||||
}
|
||||
}
|
||||
|
||||
ImportedName importedName;
|
||||
std::tie(importedName, std::ignore) = importFullName(decl);
|
||||
auto name = importedName.getDeclName().getBaseIdentifier();
|
||||
|
||||
Reference in New Issue
Block a user