From cf9d24b75d4aafce94d5dfbf5e4e0ee391694ce4 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Sat, 11 Jul 2015 11:23:48 -0700 Subject: [PATCH] Fix some info-level warnings from Dart analyzer TBR=eseidel@google.com Review URL: https://codereview.chromium.org/1226103013 . --- sdk/example/fitness/lib/home.dart | 2 +- sdk/example/game/lib/particle_system.dart | 7 ++++--- sdk/lib/widgets/card.dart | 2 -- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sdk/example/fitness/lib/home.dart b/sdk/example/fitness/lib/home.dart index c22a80fb128..770b8e13335 100644 --- a/sdk/example/fitness/lib/home.dart +++ b/sdk/example/fitness/lib/home.dart @@ -31,7 +31,7 @@ class HomeFragment extends StatefulComponent { FitnessMode _fitnessMode = FitnessMode.measure; - void initState { + void initState() { // if (debug) // new Timer(new Duration(seconds: 1), dumpState); _drawerController = new DrawerController(_handleDrawerStatusChanged); diff --git a/sdk/example/game/lib/particle_system.dart b/sdk/example/game/lib/particle_system.dart index a64210bd125..01e0d653d90 100644 --- a/sdk/example/game/lib/particle_system.dart +++ b/sdk/example/game/lib/particle_system.dart @@ -76,7 +76,8 @@ class ParticleSystem extends Node { List<_Particle> _particles; double _emitCounter; - double _elapsedTime; + // Not yet used: + // double _elapsedTime; int _numEmittedParticles = 0; math.Random _rand; @@ -117,7 +118,7 @@ class ParticleSystem extends Node { _particles = new List<_Particle>(); _rand = new math.Random(); _emitCounter = 0.0; - _elapsedTime = 0.0; + // _elapsedTime = 0.0; if (gravity == null) gravity = new Vector2.zero(); if (colorSequence == null) colorSequence = new ColorSequence.fromStartAndEndColor(new Color(0xffffffff), new Color(0x00ffffff)); } @@ -139,7 +140,7 @@ class ParticleSystem extends Node { _emitCounter -= rate; } - _elapsedTime += dt; + // _elapsedTime += dt; // Iterate over all particles for (int i = _particles.length -1; i >= 0; i--) { diff --git a/sdk/lib/widgets/card.dart b/sdk/lib/widgets/card.dart index 6be4490ede0..cd0bb8173c3 100644 --- a/sdk/lib/widgets/card.dart +++ b/sdk/lib/widgets/card.dart @@ -2,10 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import '../theme/colors.dart' as colors; import 'basic.dart'; import 'material.dart'; -import "theme.dart"; /// A material design card ///