]> granicus.if.org Git - clang/commitdiff
Remove unused argument in my last patch.
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 21 May 2012 17:10:28 +0000 (17:10 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 21 May 2012 17:10:28 +0000 (17:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157194 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaObjCProperty.cpp

index d944380ef85adfec51dd43aeb2d89dc64610cd18..222eaac7f0a03097f0079b57d550341b698fae61 100644 (file)
@@ -202,8 +202,7 @@ makePropertyAttributesAsWritten(unsigned Attributes) {
   return (ObjCPropertyDecl::PropertyAttributeKind)attributesAsWritten;
 }
 
-static bool LocPropertyAttribute(const Sema &sema,
-                                 ASTContext &Context, const char *attrName, 
+static bool LocPropertyAttribute( ASTContext &Context, const char *attrName, 
                                  SourceLocation LParenLoc, SourceLocation &Loc) {
   if (LParenLoc.isMacroID())
     return false;
@@ -672,7 +671,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S,
       Diag(IC->getLocation(), diag::warn_auto_readonly_iboutlet_property);
       Diag(property->getLocation(), diag::note_property_declare);
       SourceLocation readonlyLoc;
-      if (LocPropertyAttribute(*this, Context, "readonly", 
+      if (LocPropertyAttribute(Context, "readonly", 
                                property->getLParenLoc(), readonlyLoc)) {
         SourceLocation endLoc = 
           readonlyLoc.getLocWithOffset(strlen("readonly")-1);