Skip to content

Commit

Permalink
move isClearingPhetioDynamicElementsProperty to tandem/, phetsims/tan…
Browse files Browse the repository at this point in the history
…dem#294

Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed May 31, 2023
1 parent 94daf6d commit e36da79
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions js/Sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,6 @@ export default class Sim extends PhetioObject {
// If any sim screen has keyboard help content, trigger creation of a keyboard help button.
public readonly hasKeyboardHelpContent: boolean;

// if PhET-iO is currently setting the state of the simulation and in the process of clearing dynamic elements as a
// precursor to setting the state of those elements. See PhetioStateEngine for details. This must be
// declared before soundManager.initialized is called.
public readonly isClearingPhetioDynamicElementsProperty: TReadOnlyProperty<boolean>;

// (joist-internal)
public readonly version: string = packageJSON.version;

Expand Down Expand Up @@ -594,10 +589,6 @@ export default class Sim extends PhetioObject {
assert && assert( !window.phet.joist.sim, 'Only supports one sim at a time' );
window.phet.joist.sim = this;

this.isClearingPhetioDynamicElementsProperty = Tandem.PHET_IO_ENABLED ?
phet.phetio.phetioEngine.phetioStateEngine.isClearingDynamicElementsProperty :
new BooleanProperty( false );

// commented out because https://github.com/phetsims/joist/issues/553 is deferred for after GQIO-oneone
// if ( PHET_IO_ENABLED ) {
// this.engagementMetrics = new EngagementMetrics( this );
Expand Down

0 comments on commit e36da79

Please sign in to comment.