Skip to content

Commit

Permalink
Inline followCenterOfMassButton, see #88
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 10, 2023
1 parent f766d0f commit 2bda20c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions js/common/view/MySolarSystemControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ export type MySolarSystemControlsOptions = SelfOptions & WithRequired<VBoxOption

export default class MySolarSystemControls extends VBox {

//REVIEW: Why is this public? It's not used anywhere else. Remove it as a field, and inline it in the constructor.
public readonly followCenterOfMassButton: TextPushButton;

public constructor(
model: MySolarSystemModel,
topLayer: Node,
Expand Down Expand Up @@ -64,8 +61,6 @@ export default class MySolarSystemControls extends VBox {
labelTagName: 'h3',
labelContent: 'Control Panel'
} );

this.followCenterOfMassButton = followCenterOfMassButton;
}
}

Expand Down

0 comments on commit 2bda20c

Please sign in to comment.