Skip to content

Commit

Permalink
Remove unused parameter, see #222
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 10, 2023
1 parent 3ed870d commit b3b0e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions js/common/view/MedianHighlightLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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<boolean>, providedOptions: MedianHighlightLayerOptions ) {
public constructor( sceneModel: CAVSceneModel, modelViewTransform: ModelViewTransform2, isPlayAreaMedianVisibleProperty: TReadOnlyProperty<boolean>, providedOptions: MedianHighlightLayerOptions ) {

const LINE_WIDTH = 2;
const viewRadius = modelViewTransform.modelToViewDeltaX( CAVObjectType.SOCCER_BALL.radius * ( 1 - SoccerCommonConstants.SOCCER_BALL_OVERLAP ) );
Expand Down
2 changes: 1 addition & 1 deletion js/soccer-common/view/SceneView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class SceneView {

const soccerBallMap = new Map<SoccerBall, SoccerBallNode>();

const medianHighlightLayer = new MedianHighlightLayer( model, sceneModel, modelViewTransform, model.isPlayAreaMedianVisibleProperty, {
const medianHighlightLayer = new MedianHighlightLayer( sceneModel, modelViewTransform, model.isPlayAreaMedianVisibleProperty, {
visibleProperty: model.isPlayAreaMedianVisibleProperty
} );

Expand Down

0 comments on commit b3b0e92

Please sign in to comment.