From e0966be5ce9d0ce7f8069fec06ca16ed83bc702a Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 11 Mar 2010 00:36:10 +0000 Subject: [PATCH] Remove unused 'IVars' field from ObjCInterfaceDecl. That functionality has migrated to DeclContext. llvm-svn: 98213 --- clang/include/clang/AST/DeclObjC.h | 3 --- clang/lib/AST/DeclObjC.cpp | 1 - 2 files changed, 4 deletions(-) diff --git a/clang/include/clang/AST/DeclObjC.h b/clang/include/clang/AST/DeclObjC.h index 889e0d6c1be8..18819087ae7a 100644 --- a/clang/include/clang/AST/DeclObjC.h +++ b/clang/include/clang/AST/DeclObjC.h @@ -445,9 +445,6 @@ class ObjCInterfaceDecl : public ObjCContainerDecl { /// Protocols referenced in interface header declaration ObjCProtocolList ReferencedProtocols; - /// Instance variables in the interface. This list is completely redundant. - ObjCList IVars; - /// List of categories defined for this class. /// FIXME: Why is this a linked list?? ObjCCategoryDecl *CategoryList; diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index 67b71a0c44e5..c94a551ae207 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -441,7 +441,6 @@ void ObjCInterfaceDecl::Destroy(ASTContext &C) { for (ivar_iterator I = ivar_begin(), E = ivar_end(); I != E; ++I) if (*I) (*I)->Destroy(C); - IVars.Destroy(C); // FIXME: CategoryList? // FIXME: Because there is no clear ownership