Fixed #37: Removes unused variable ScriptScanner::next_byte_limit_

This commit is contained in:
Jason Riesa
2015-07-28 08:55:54 -07:00
parent 2eb65ba00c
commit 84b58a5d76
2 changed files with 1 additions and 4 deletions

View File

@@ -547,7 +547,6 @@ ScriptScanner::ScriptScanner(const char* buffer,
bool is_plain_text)
: start_byte_(buffer),
next_byte_(buffer),
next_byte_limit_(buffer + buffer_length),
byte_length_(buffer_length),
is_plain_text_(is_plain_text),
letters_marks_only_(true),
@@ -567,7 +566,6 @@ ScriptScanner::ScriptScanner(const char* buffer,
bool any_script)
: start_byte_(buffer),
next_byte_(buffer),
next_byte_limit_(buffer + buffer_length),
byte_length_(buffer_length),
is_plain_text_(is_plain_text),
letters_marks_only_(!any_text),

View File

@@ -86,8 +86,7 @@ class ScriptScanner {
const char* start_byte_; // Starting byte of buffer to scan
const char* next_byte_; // First unscanned byte
const char* next_byte_limit_; // Last byte + 1
int byte_length_; // Bytes left: next_byte_limit_ - next_byte_
int byte_length_; // Bytes left
bool is_plain_text_; // true fo text, false for HTML
char* script_buffer_; // Holds text with expanded entities