From b3b0e92b4313952a07dd43204e6f627d77c42628 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Sat, 10 Jun 2023 06:42:18 -0600 Subject: [PATCH] Remove unused parameter, see https://github.com/phetsims/center-and-variability/issues/222 --- js/common/view/MedianHighlightLayer.ts | 3 +-- js/soccer-common/view/SceneView.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/common/view/MedianHighlightLayer.ts b/js/common/view/MedianHighlightLayer.ts index 9d3761f0..f2707396 100644 --- a/js/common/view/MedianHighlightLayer.ts +++ b/js/common/view/MedianHighlightLayer.ts @@ -3,7 +3,6 @@ import { Circle, Node, NodeOptions } from '../../../../scenery/js/imports.js'; import centerAndVariability from '../../centerAndVariability.js'; import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js'; -import CAVModel from '../model/CAVModel.js'; import CAVSceneModel from '../../soccer-common/model/CAVSceneModel.js'; import ModelViewTransform2 from '../../../../phetcommon/js/view/ModelViewTransform2.js'; import CAVObjectType from '../../soccer-common/model/CAVObjectType.js'; @@ -21,7 +20,7 @@ type MedianHighlightLayerOptions = SelfOptions & NodeOptions; * @author Matt Blackman (PhET Interactive Simulations) */ export default class MedianHighlightLayer extends Node { - public constructor( model: CAVModel, sceneModel: CAVSceneModel, modelViewTransform: ModelViewTransform2, isPlayAreaMedianVisibleProperty: TReadOnlyProperty, providedOptions: MedianHighlightLayerOptions ) { + public constructor( sceneModel: CAVSceneModel, modelViewTransform: ModelViewTransform2, isPlayAreaMedianVisibleProperty: TReadOnlyProperty, providedOptions: MedianHighlightLayerOptions ) { const LINE_WIDTH = 2; const viewRadius = modelViewTransform.modelToViewDeltaX( CAVObjectType.SOCCER_BALL.radius * ( 1 - SoccerCommonConstants.SOCCER_BALL_OVERLAP ) ); diff --git a/js/soccer-common/view/SceneView.ts b/js/soccer-common/view/SceneView.ts index 21c79404..a425a4b2 100644 --- a/js/soccer-common/view/SceneView.ts +++ b/js/soccer-common/view/SceneView.ts @@ -43,7 +43,7 @@ export default class SceneView { const soccerBallMap = new Map(); - const medianHighlightLayer = new MedianHighlightLayer( model, sceneModel, modelViewTransform, model.isPlayAreaMedianVisibleProperty, { + const medianHighlightLayer = new MedianHighlightLayer( sceneModel, modelViewTransform, model.isPlayAreaMedianVisibleProperty, { visibleProperty: model.isPlayAreaMedianVisibleProperty } );