Skip to content

Commit c0a2c78

Browse files
committed
[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.
1 parent 0b38780 commit c0a2c78

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4562,16 +4562,6 @@ namespace {
45624562
}
45634563

45644564
Decl *VisitClassTemplateDecl(const clang::ClassTemplateDecl *decl) {
4565-
// When loading a namespace's sub-decls, we won't add template
4566-
// specilizations, so make sure to do that here.
4567-
for (auto spec : decl->specializations()) {
4568-
if (auto importedSpec = Impl.importDecl(spec, getVersion())) {
4569-
if (auto namespaceDecl =
4570-
dyn_cast<EnumDecl>(importedSpec->getDeclContext()))
4571-
namespaceDecl->addMember(importedSpec);
4572-
}
4573-
}
4574-
45754565
ImportedName importedName;
45764566
std::tie(importedName, std::ignore) = importFullName(decl);
45774567
auto name = importedName.getDeclName().getBaseIdentifier();

0 commit comments

Comments
 (0)