[cfe-commits] r130622 - /cfe/trunk/lib/AST/Type.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Apr 30 12:55:59 PDT 2011


Author: d0k
Date: Sat Apr 30 14:55:59 2011
New Revision: 130622

URL: http://llvm.org/viewvc/llvm-project?rev=130622&view=rev
Log:
Remove unused function.

Modified:
    cfe/trunk/lib/AST/Type.cpp

Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=130622&r1=130621&r2=130622&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Sat Apr 30 14:55:59 2011
@@ -1500,20 +1500,6 @@
   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());
 }





More information about the cfe-commits mailing list