Skip to content

Commit

Permalink
lint fixes for EC distributor, see #191
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Feb 4, 2019
1 parent 8e39c36 commit 67c1612
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/common/model/EnergyChunkDistributor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 );

Expand Down Expand Up @@ -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 ) {

Expand Down

0 comments on commit 67c1612

Please sign in to comment.