Fix some info-level warnings from Dart analyzer

TBR=eseidel@google.com

Review URL: https://codereview.chromium.org/1226103013 .
This commit is contained in:
Adam Barth 2015-07-11 11:23:48 -07:00
parent 63318886a0
commit cf9d24b75d
3 changed files with 5 additions and 6 deletions

View File

@ -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);

View File

@ -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--) {

View File

@ -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
///