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

Unified Diff: sky/sdk/example/game/lib/particle_system.dart

Issue 1226103013: Fix some info-level warnings from Dart analyzer (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/sdk/example/fitness/lib/home.dart ('k') | sky/sdk/lib/widgets/card.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/game/lib/particle_system.dart
diff --git a/sky/sdk/example/game/lib/particle_system.dart b/sky/sdk/example/game/lib/particle_system.dart
index a64210bd12528deb121f75475e1613801f714a4b..c9a50fd715c3ba9986ac911dae598085312fb51d 100644
--- a/sky/sdk/example/game/lib/particle_system.dart
+++ b/sky/sdk/example/game/lib/particle_system.dart
@@ -76,7 +76,7 @@ class ParticleSystem extends Node {
List<_Particle> _particles;
double _emitCounter;
- double _elapsedTime;
+ // double _elapsedTime;
int _numEmittedParticles = 0;
math.Random _rand;
@@ -117,7 +117,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 +139,7 @@ class ParticleSystem extends Node {
_emitCounter -= rate;
}
- _elapsedTime += dt;
+ // _elapsedTime += dt;
// Iterate over all particles
for (int i = _particles.length -1; i >= 0; i--) {
« no previous file with comments | « sky/sdk/example/fitness/lib/home.dart ('k') | sky/sdk/lib/widgets/card.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698