Reviewers: Lasse Reichstein,

Description:
Another minor regexp cleanup.

Please review this at http://codereview.chromium.org/4577001/show

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/string.js


Index: src/string.js
===================================================================
--- src/string.js       (revision 5772)
+++ src/string.js       (working copy)
@@ -162,9 +162,6 @@
   var subject = TO_STRING_INLINE(this);
   if (IS_REGEXP(regexp)) {
     if (!regexp.global) return regexp.exec(subject);
-
-    var saveAnswer = false;
-
     %_Log('regexp', 'regexp-match,%0S,%1r', [subject, regexp]);
     // lastMatchInfo is defined in regexp.js.
     return %StringMatch(subject, regexp, lastMatchInfo);
@@ -562,8 +559,6 @@
     return result;
   }

-  var saveAnswer = false;
-
   %_Log('regexp', 'regexp-split,%0S,%1r', [subject, separator]);

   if (length === 0) {


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to