Skip to content

Commit

Permalink
delete uses of AssertUtils, #326
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Nov 15, 2022
1 parent b10e704 commit 08ba0bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/common/NaturalSelectionConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

import Range from '../../../dot/js/Range.js';
import AssertUtils from '../../../phetcommon/js/AssertUtils.js';
import PhetFont from '../../../scenery-phet/js/PhetFont.js';
import { VBoxOptions } from '../../../scenery/js/imports.js';
import { ArrowButtonOptions } from '../../../sun/js/buttons/ArrowButton.js';
Expand All @@ -17,6 +16,7 @@ import { DialogOptions } from '../../../sun/js/Dialog.js';
import { PanelOptions } from '../../../sun/js/Panel.js';
import naturalSelection from '../naturalSelection.js';
import NaturalSelectionColors from './NaturalSelectionColors.js';
import NaturalSelectionUtils from './NaturalSelectionUtils.js';

// constants
const CORNER_RADIUS = 5;
Expand Down Expand Up @@ -137,8 +137,8 @@ const NaturalSelectionConstants = {
PEDIGREE_TREE_DEPTH: 4
};

assert && AssertUtils.assertRangeBetween( NaturalSelectionConstants.CLOCK_FOOD_RANGE, 0, 1 );
assert && AssertUtils.assertRangeBetween( NaturalSelectionConstants.CLOCK_WOLVES_RANGE, 0, 1 );
assert && assert( NaturalSelectionUtils.isPercentRange( NaturalSelectionConstants.CLOCK_FOOD_RANGE ) );
assert && assert( NaturalSelectionUtils.isPercentRange( NaturalSelectionConstants.CLOCK_WOLVES_RANGE ) );

naturalSelection.register( 'NaturalSelectionConstants', NaturalSelectionConstants );
export default NaturalSelectionConstants;

0 comments on commit 08ba0bd

Please sign in to comment.