Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: lib/src/tokenizer_base.dart

Issue 1138823002: pkg/csslib: Remove a number of unused members, prepare for release (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/polyfill.dart ('k') | lib/src/tokenkind.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/tokenizer_base.dart
diff --git a/lib/src/tokenizer_base.dart b/lib/src/tokenizer_base.dart
index 7999a8f8603ce1d71e7aace88f9f28f260ea0a33..8c52fb0bad37eafbe1aa28aa066907e9a04b93be 100644
--- a/lib/src/tokenizer_base.dart
+++ b/lib/src/tokenizer_base.dart
@@ -55,9 +55,6 @@ abstract class TokenizerBase {
int _index = 0;
int _startIndex = 0;
- static const String _CDATA_START = '<![CDATA[';
- static const String _CDATA_END = ']]>';
-
TokenizerBase(this._file, this._text, this._skipWhitespace,
[this._index = 0]);
@@ -104,14 +101,6 @@ abstract class TokenizerBase {
}
}
- String _tokenText() {
- if (_index < _text.length) {
- return _text.substring(_startIndex, _index);
- } else {
- return _text.substring(_startIndex, _text.length);
- }
- }
-
Token _finishToken(int kind) {
return new Token(kind, _file.span(_startIndex, _index));
}
@@ -306,14 +295,6 @@ abstract class TokenizerBase {
}
}
- Token _finishOpenBrace() {
- return _finishToken(TokenKind.LBRACE);
- }
-
- Token _finishCloseBrace() {
- return _finishToken(TokenKind.RBRACE);
- }
-
Token finishString(int quote) {
if (_maybeEatChar(quote)) {
if (_maybeEatChar(quote)) {
« no previous file with comments | « lib/src/polyfill.dart ('k') | lib/src/tokenkind.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698