summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/AST/Type.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp
index 0ca9b1fd2fd..f0737400fc4 100644
--- a/clang/lib/AST/Type.cpp
+++ b/clang/lib/AST/Type.cpp
@@ -1500,20 +1500,6 @@ bool RecordType::classof(const TagType *TT) {
return isa<RecordDecl>(TT->getDecl());
}
-static uint64_t countBasesWithFields(QualType BaseType) {
- uint64_t BasesWithFields = 0;
- if (const RecordType *T = BaseType->getAs<RecordType>()) {
- CXXRecordDecl *RD = cast<CXXRecordDecl>(T->getDecl());
- for (CXXRecordDecl::field_iterator Field = RD->field_begin(),
- E = RD->field_end(); Field != E; ++Field)
- BasesWithFields = 1;
- for (CXXRecordDecl::base_class_const_iterator B = RD->bases_begin(),
- BE = RD->bases_end(); B != BE; ++B)
- BasesWithFields += countBasesWithFields(B->getType());
- }
- return BasesWithFields;
-}
-
bool EnumType::classof(const TagType *TT) {
return isa<EnumDecl>(TT->getDecl());
}
OpenPOWER on IntegriCloud