From: Benjamin Kramer Date: Sat, 30 Apr 2011 19:55:59 +0000 (+0000) Subject: Remove unused function. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc53159ba08ae9a435b89e53497906e79141c347;p=clang Remove unused function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130622 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 0ca9b1fd2f..f0737400fc 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -1500,20 +1500,6 @@ bool RecordType::classof(const TagType *TT) { return isa(TT->getDecl()); } -static uint64_t countBasesWithFields(QualType BaseType) { - uint64_t BasesWithFields = 0; - if (const RecordType *T = BaseType->getAs()) { - CXXRecordDecl *RD = cast(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(TT->getDecl()); }