Omit a variable used only in an assertion, to silence warnings in non-debug builds. no_r=me.
authorJason Orendorff <jorendorff@mozilla.com>
Mon, 07 Mar 2011 11:21:16 -0600
changeset 64247 b9ca0ce513fd04978674073d6499a934145b6934
parent 64246 d3961f0a2adec33f5176712f3b6c32f9e4aa13d2
child 64248 cb7853aa2d3ab5be7d981495e28b712985b61e9c
push idunknown
push userunknown
push dateunknown
milestone2.0b13pre
Omit a variable used only in an assertion, to silence warnings in non-debug builds. no_r=me.
js/src/jsreflect.cpp
--- a/js/src/jsreflect.cpp
+++ b/js/src/jsreflect.cpp
@@ -2314,19 +2314,17 @@ ASTSerializer::statement(JSParseNode *pn
         LOCAL_NOT_REACHED("unexpected statement type");
     }
 }
 
 bool
 ASTSerializer::leftAssociate(JSParseNode *pn, Value *dst)
 {
     JS_ASSERT(pn->pn_arity == PN_LIST);
-
-    const size_t len = pn->pn_count;
-    JS_ASSERT(len >= 1);
+    JS_ASSERT(pn->pn_count >= 1);
 
     TokenKind tk = PN_TYPE(pn);
     bool lor = tk == TOK_OR;
     bool logop = lor || (tk == TOK_AND);
 
     JSParseNode *head = pn->pn_head;
     Value left;
     if (!expression(head, &left))