Bug 1183400 - Remove a now-unused variable, following up on the ?:/if-node folding changes. r=trivial, r=orange in a CLOSED TREE
authorJeff Walden <jwalden@mit.edu>
Thu, 30 Jul 2015 16:58:58 -0400
changeset 288880 284e480363118933968d31946e0747d8141a00c0
parent 288879 e9012f07826574b0b3859ab88f765e7e19fdc587
child 288881 54e85cce2cadab90168e9ac93e4e4dfeb53667dd
push id934
push userraliiev@mozilla.com
push dateMon, 26 Oct 2015 12:58:05 +0000
treeherdermozilla-release@05704e35c1d0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial, orange
bugs1183400
milestone42.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 1183400 - Remove a now-unused variable, following up on the ?:/if-node folding changes. r=trivial, r=orange in a CLOSED TREE
js/src/frontend/FoldConstants.cpp
--- a/js/src/frontend/FoldConstants.cpp
+++ b/js/src/frontend/FoldConstants.cpp
@@ -1280,17 +1280,16 @@ bool
 Fold(ExclusiveContext* cx, ParseNode** pnp, Parser<FullParseHandler>& parser, bool inGenexpLambda,
      SyntacticContext sc)
 {
     JS_CHECK_RECURSION(cx, return false);
 
     ParseNode* pn = *pnp;
     ParseNode* pn1 = nullptr;
     ParseNode* pn2 = nullptr;
-    ParseNode* pn3 = nullptr;
 
     switch (pn->getKind()) {
       case PNK_NEWTARGET:
       case PNK_NOP:
       case PNK_REGEXP:
       case PNK_STRING:
       case PNK_TRUE:
       case PNK_FALSE:
@@ -1527,17 +1526,16 @@ Fold(ExclusiveContext* cx, ParseNode** p
             }
         }
         pn2 = pn->pn_kid2;
 
         if (pn->pn_kid3) {
             if (!Fold(cx, &pn->pn_kid3, parser, inGenexpLambda, SyntacticContext::Other))
                 return false;
         }
-        pn3 = pn->pn_kid3;
         break;
 
       case PN_BINARY:
       case PN_BINARY_OBJ:
         /* First kid may be null (for default case in switch). */
         if (pn->pn_left) {
             if (!Fold(cx, &pn->pn_left, parser, inGenexpLambda, condIf(pn, PNK_WHILE)))
                 return false;