Bug 685234: Remove unused variable 'afterComma' from jsparse.cpp. r=jimb
authorDaniel Holbert <dholbert@cs.stanford.edu>
Wed, 07 Sep 2011 11:32:37 -0700
changeset 76683 dcd8e435c61648385406e9db23b097e99e084e4a
parent 76682 c7589174b0f0c8f13e3003d598902e41a6731644
child 76684 6b384ab361611b6d1c0c7b8a147f007befa3be0c
push id21133
push usereakhgari@mozilla.com
push dateThu, 08 Sep 2011 15:46:56 +0000
treeherdermozilla-central@2bd109e6766f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimb
bugs685234
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 685234: Remove unused variable 'afterComma' from jsparse.cpp. r=jimb
js/src/jsparse.cpp
--- a/js/src/jsparse.cpp
+++ b/js/src/jsparse.cpp
@@ -8449,17 +8449,16 @@ Parser::primaryExpr(TokenKind tt, JSBool
             MUST_MATCH_TOKEN(TOK_RB, JSMSG_BRACKET_AFTER_LIST);
         }
         pn->pn_pos.end = tokenStream.currentToken().pos.end;
         return pn;
       }
 
       case TOK_LC:
       {
-        JSBool afterComma;
         JSParseNode *pnval;
 
         /*
          * A map from property names we've seen thus far to a mask of property
          * assignment types, stored and retrieved with ALE_SET_INDEX/ALE_INDEX.
          */
         AtomIndexMap seen(context);
 
@@ -8471,17 +8470,16 @@ Parser::primaryExpr(TokenKind tt, JSBool
 
         pn = ListNode::create(tc);
         if (!pn)
             return NULL;
         pn->pn_type = TOK_RC;
         pn->pn_op = JSOP_NEWINIT;
         pn->makeEmpty();
 
-        afterComma = JS_FALSE;
         for (;;) {
             JSAtom *atom;
             tt = tokenStream.getToken(TSF_KEYWORD_IS_NAME);
             switch (tt) {
               case TOK_NUMBER:
                 pn3 = NullaryNode::create(tc);
                 if (!pn3)
                     return NULL;
@@ -8630,17 +8628,16 @@ Parser::primaryExpr(TokenKind tt, JSBool
 
             tt = tokenStream.getToken();
             if (tt == TOK_RC)
                 goto end_obj_init;
             if (tt != TOK_COMMA) {
                 reportErrorNumber(NULL, JSREPORT_ERROR, JSMSG_CURLY_AFTER_LIST);
                 return NULL;
             }
-            afterComma = JS_TRUE;
         }
 
       end_obj_init:
         pn->pn_pos.end = tokenStream.currentToken().pos.end;
         return pn;
       }
 
 #if JS_HAS_BLOCK_SCOPE