From dba0b0b8761e45c867591a8ed6b683e0d986e27d Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Tue, 6 Apr 2010 23:43:59 +0000 Subject: [PATCH] Minor clean up. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100583 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/Sema.h | 3 --- lib/Sema/SemaObjCProperty.cpp | 18 ------------------ 2 files changed, 21 deletions(-) diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 3f5113ed55..13aa27ea96 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -1495,9 +1495,6 @@ public: ObjCPropertyDecl *LookupPropertyDecl(const ObjCContainerDecl *CDecl, IdentifierInfo *II); - ObjCIvarDecl *SynthesizeNewPropertyIvar(ObjCInterfaceDecl *IDecl, - IdentifierInfo *NameII); - /// Called by ActOnProperty to handle @property declarations in //// class extensions. DeclPtrTy HandlePropertyInClassExtension(Scope *S, diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 940366ae0d..d5174a827e 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -1066,21 +1066,3 @@ void Sema::CheckObjCPropertyAttributes(DeclPtrTy PropertyPtrTy, && PropertyTy->isBlockPointerType()) Diag(Loc, diag::warn_objc_property_copy_missing_on_block); } - -ObjCIvarDecl* -Sema::SynthesizeNewPropertyIvar(ObjCInterfaceDecl *IDecl, - IdentifierInfo *NameII) { - ObjCIvarDecl *Ivar = 0; - ObjCPropertyDecl *Prop = LookupPropertyDecl(IDecl, NameII); - if (Prop && !Prop->isInvalidDecl()) { - QualType PropType = Context.getCanonicalType(Prop->getType()); - Ivar = ObjCIvarDecl::Create(Context, IDecl, Prop->getLocation(), NameII, - PropType, /*Dinfo=*/0, - ObjCIvarDecl::Public, (Expr *)0); - Ivar->setLexicalDeclContext(IDecl); - IDecl->addDecl(Ivar); - Prop->setPropertyIvarDecl(Ivar); - } - return Ivar; -} - -- 2.50.1