[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:
zoecarver
2021-09-23 15:52:33 -07:00
parent 0b387802d8
commit c0a2c7819e

View File

@@ -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();