Skip to content

Commit 3e07369

Browse files
authored
Merge pull request #39434 from zoecarver/lazy-pt6-class-template-dce
[nfc][cxx-interop] Remove dead code in `VisitClassTemplateDecl`.
2 parents b159a8f + c0a2c78 commit 3e07369

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
@@ -4595,16 +4595,6 @@ namespace {
45954595
}
45964596

45974597
Decl *VisitClassTemplateDecl(const clang::ClassTemplateDecl *decl) {
4598-
// When loading a namespace's sub-decls, we won't add template
4599-
// specilizations, so make sure to do that here.
4600-
for (auto spec : decl->specializations()) {
4601-
if (auto importedSpec = Impl.importDecl(spec, getVersion())) {
4602-
if (auto namespaceDecl =
4603-
dyn_cast<EnumDecl>(importedSpec->getDeclContext()))
4604-
namespaceDecl->addMember(importedSpec);
4605-
}
4606-
}
4607-
46084598
ImportedName importedName;
46094599
std::tie(importedName, std::ignore) = importFullName(decl);
46104600
auto name = importedName.getDeclName().getBaseIdentifier();

0 commit comments

Comments
 (0)