Index: pkg/front_end/lib/src/scanner/token.dart |
diff --git a/pkg/front_end/lib/src/scanner/token.dart b/pkg/front_end/lib/src/scanner/token.dart |
index b1be439cb668b22e2b6d2a210236322ecc7acd94..ca3ea2b47d982f0e80fbc336c4c8349fe4cbfb53 100644 |
--- a/pkg/front_end/lib/src/scanner/token.dart |
+++ b/pkg/front_end/lib/src/scanner/token.dart |
@@ -85,16 +85,6 @@ class BeginTokenWithComment extends BeginToken implements TokenWithComment { |
} |
@override |
- void applyDelta(int delta) { |
- super.applyDelta(delta); |
- Token token = precedingComments; |
- while (token != null) { |
- token.applyDelta(delta); |
- token = token.next; |
- } |
- } |
- |
- @override |
Token copy() => |
new BeginTokenWithComment(type, offset, copyComments(precedingComments)); |
} |
@@ -490,16 +480,6 @@ class KeywordTokenWithComment extends KeywordToken implements TokenWithComment { |
} |
@override |
- void applyDelta(int delta) { |
- super.applyDelta(delta); |
- Token token = precedingComments; |
- while (token != null) { |
- token.applyDelta(delta); |
- token = token.next; |
- } |
- } |
- |
- @override |
Token copy() => new KeywordTokenWithComment( |
keyword, offset, copyComments(precedingComments)); |
} |
@@ -582,11 +562,6 @@ class SimpleToken implements Token { |
String get stringValue => type.stringValue; |
@override |
- void applyDelta(int delta) { |
- offset += delta; |
- } |
- |
- @override |
Token copy() => new Token(type, offset); |
@override |
@@ -704,16 +679,6 @@ class StringTokenWithComment extends StringToken implements TokenWithComment { |
} |
@override |
- void applyDelta(int delta) { |
- super.applyDelta(delta); |
- Token token = precedingComments; |
- while (token != null) { |
- token.applyDelta(delta); |
- token = token.next; |
- } |
- } |
- |
- @override |
Token copy() => new StringTokenWithComment( |
type, lexeme, offset, copyComments(precedingComments)); |
} |
@@ -896,11 +861,6 @@ abstract class Token implements SyntacticEntity { |
TokenType get type; |
/** |
- * Apply (add) the given [delta] to this token's offset. |
- */ |
- void applyDelta(int delta); |
- |
- /** |
* Return a newly created token that is a copy of this tokens |
* including any [preceedingComment] tokens, |
* but that is not a part of any token stream. |