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

Unified Diff: lib/parser.dart

Issue 1009053006: pkg/csslib: remove unused vars and fields (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: Created 5 years, 9 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 | « no previous file | lib/src/analyzer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/parser.dart
diff --git a/lib/parser.dart b/lib/parser.dart
index e0aa3388e5b682dad81ecbf217f8fd6fe380ff70..25c329dedf5e3e095ab67bd83feea16b34851f4c 100644
--- a/lib/parser.dart
+++ b/lib/parser.dart
@@ -812,7 +812,6 @@ class _Parser {
}
var declGroup = processDeclarations(checkBrace: false);
- var decls = [];
if (declGroup.declarations.any((decl) {
return decl is Declaration && decl is! IncludeMixinAtDeclaration;
})) {
@@ -881,7 +880,7 @@ class _Parser {
// sign and the directive name. Technically, it's not valid grammar but
// a number of CSS tests test for whitespace between @ and name.
if (tokId == TokenKind.AT) {
- Token tok = _next();
+ _next();
tokId = _peek();
if (_peekIdentifier()) {
// Is it a directive?
@@ -1847,7 +1846,6 @@ class _Parser {
}
break;
case _lineHeightPart:
- num lineHeight;
if (exprs.expressions.length == 1) {
var expr = exprs.expressions[0];
if (expr is UnitTerm) {
@@ -2645,13 +2643,10 @@ class ExpressionsProcessor {
}
FontExpression processFont() {
- List<String> family;
-
// Process all parts of the font expression.
FontExpression fontSize;
FontExpression fontFamily;
for (; _index < _exprs.expressions.length; _index++) {
- var expr = _exprs.expressions[_index];
// Order is font-size font-family
if (fontSize == null) {
fontSize = processFontSize();
« no previous file with comments | « no previous file | lib/src/analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698