From 67c1612b8d7d4717195a98c99f612a989d14027c Mon Sep 17 00:00:00 2001 From: jbphet Date: Mon, 4 Feb 2019 13:51:21 -0700 Subject: [PATCH] lint fixes for EC distributor, see https://github.com/phetsims/energy-forms-and-changes/issues/191 --- js/common/model/EnergyChunkDistributor.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/common/model/EnergyChunkDistributor.js b/js/common/model/EnergyChunkDistributor.js index e9b066ad..e7b176ef 100644 --- a/js/common/model/EnergyChunkDistributor.js +++ b/js/common/model/EnergyChunkDistributor.js @@ -21,7 +21,6 @@ define( function( require ) { // modules var Bounds2 = require( 'DOT/Bounds2' ); var energyFormsAndChanges = require( 'ENERGY_FORMS_AND_CHANGES/energyFormsAndChanges' ); - var Random = require( 'DOT/Random' ); var Vector2 = require( 'DOT/Vector2' ); // constants @@ -53,9 +52,6 @@ define( function( require ) { // speed used when positioning ECs using deterministic algorithms, in meters per second var EC_SPEED_DETERMINISTIC = 0.1; - // random number generator - var RANDOM = new Random(); - // a reusable 2D array of the energy chunks being redistributed, indexed by [sliceNum][ecNum] var energyChunks = new Array( MAX_SLICES ); @@ -408,7 +404,7 @@ define( function( require ) { * an order-N version of the distribution algorithm that uses a spiral to position the energy chunks * @param slices * @param dt - * @return {boolean} + * @returns {boolean} */ updatePositions: function( slices, dt ) {