aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-04-06 23:43:59 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-04-06 23:43:59 +0000
commitdba0b0b8761e45c867591a8ed6b683e0d986e27d (patch)
tree213f9074e13b46a24a3e3e7e22c4f9bdfd85465b
parent2846b2b47029c877357438d16c73911c1510be6c (diff)
Minor clean up.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100583 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/Sema.h3
-rw-r--r--lib/Sema/SemaObjCProperty.cpp18
2 files changed, 0 insertions, 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;
-}
-