Revision: 20334
Author:   [email protected]
Date:     Fri Mar 28 13:11:12 2014 UTC
Log:      Cleanup scanner character streams.

- GenericStringUtf16CharacterStream::start_position_ was unused.
- GenericStringUtf16CharacterStream inherits from BufferedUtf16CharacterStream,
so no need to initialize buffer_cursor_ and buffer_end_ twice (this makes it
clearer which class in the inheritance chain takes care of which variables).

[email protected]
BUG=

Review URL: https://codereview.chromium.org/216523004
http://code.google.com/p/v8/source/detail?r=20334

Modified:
 /branches/bleeding_edge/src/scanner-character-streams.cc
 /branches/bleeding_edge/src/scanner-character-streams.h

=======================================
--- /branches/bleeding_edge/src/scanner-character-streams.cc Fri Dec 6 11:45:26 2013 UTC +++ /branches/bleeding_edge/src/scanner-character-streams.cc Fri Mar 28 13:11:12 2014 UTC
@@ -126,8 +126,6 @@
     : string_(data),
       length_(end_position) {
   ASSERT(end_position >= start_position);
-  buffer_cursor_ = buffer_;
-  buffer_end_ = buffer_;
   pos_ = start_position;
 }

=======================================
--- /branches/bleeding_edge/src/scanner-character-streams.h Mon Mar 12 12:35:28 2012 UTC +++ /branches/bleeding_edge/src/scanner-character-streams.h Fri Mar 28 13:11:12 2014 UTC
@@ -72,7 +72,6 @@
   virtual unsigned FillBuffer(unsigned position, unsigned length);

   Handle<String> string_;
-  unsigned start_position_;
   unsigned length_;
 };

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to