From af317b4e5a56b8b251b636a1406065e246942f3f Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Mon, 13 May 2024 15:31:26 -0600 Subject: [PATCH] delete unnecessary defaultDeserializationMethod: 'applyState', https://github.com/phetsims/gas-properties/issues/77 --- js/common/model/IdealGasLawParticleSystem.ts | 1 - js/diffusion/model/DiffusionParticleSystem.ts | 1 - js/diffusion/model/ParticleFlowRateModel.ts | 1 - js/energy/model/AverageSpeedModel.ts | 1 - js/energy/model/HistogramsModel.ts | 1 - 5 files changed, 5 deletions(-) diff --git a/js/common/model/IdealGasLawParticleSystem.ts b/js/common/model/IdealGasLawParticleSystem.ts index 01f4fed8..976d874f 100644 --- a/js/common/model/IdealGasLawParticleSystem.ts +++ b/js/common/model/IdealGasLawParticleSystem.ts @@ -412,7 +412,6 @@ export default class IdealGasLawParticleSystem extends PhetioObject { */ private static readonly IdealGasLawParticleSystemIO = new IOType( 'IdealGasLawParticleSystemIO', { valueType: IdealGasLawParticleSystem, - defaultDeserializationMethod: 'applyState', stateSchema: IDEAL_GAS_LAW_PARTICLE_SYSTEM_STATE_SCHEMA, // toStateObject: Use the default, which is derived from stateSchema. applyState: IdealGasLawParticleSystem.applyState diff --git a/js/diffusion/model/DiffusionParticleSystem.ts b/js/diffusion/model/DiffusionParticleSystem.ts index c0a5f979..d5c488a4 100644 --- a/js/diffusion/model/DiffusionParticleSystem.ts +++ b/js/diffusion/model/DiffusionParticleSystem.ts @@ -271,7 +271,6 @@ export default class DiffusionParticleSystem extends PhetioObject { */ private static readonly DiffusionParticleSystemIO = new IOType( 'DiffusionParticleSystemIO', { valueType: DiffusionParticleSystem, - defaultDeserializationMethod: 'applyState', stateSchema: DIFFUSION_PARTICLE_SYSTEM_SCHEMA, // toStateObject: Use the default, which is derived from stateSchema. applyState: DiffusionParticleSystem.applyState diff --git a/js/diffusion/model/ParticleFlowRateModel.ts b/js/diffusion/model/ParticleFlowRateModel.ts index cf112221..a81ccd6d 100644 --- a/js/diffusion/model/ParticleFlowRateModel.ts +++ b/js/diffusion/model/ParticleFlowRateModel.ts @@ -176,7 +176,6 @@ export default class ParticleFlowRateModel extends PhetioObject { */ private static readonly ParticleFlowRateModelIO = new IOType( 'ParticleFlowRateModelIO', { valueType: ParticleFlowRateModel, - defaultDeserializationMethod: 'applyState', stateSchema: PARTICLE_FLOW_RATE_MODEL_STATE_SCHEMA, // toStateObject: Use the default, which is derived from stateSchema. applyState: ParticleFlowRateModel.applyState diff --git a/js/energy/model/AverageSpeedModel.ts b/js/energy/model/AverageSpeedModel.ts index f6c86692..20f32532 100644 --- a/js/energy/model/AverageSpeedModel.ts +++ b/js/energy/model/AverageSpeedModel.ts @@ -208,7 +208,6 @@ export default class AverageSpeedModel extends PhetioObject { */ private static readonly AverageSpeedModelIO = new IOType( 'AverageSpeedModelIO', { valueType: AverageSpeedModel, - defaultDeserializationMethod: 'applyState', stateSchema: AVERAGE_SPEED_MODEL_STATE_SCHEMA, // toStateObject: Use the default, which is derived from stateSchema. applyState: AverageSpeedModel.applyState diff --git a/js/energy/model/HistogramsModel.ts b/js/energy/model/HistogramsModel.ts index c3048fe6..800a4bd0 100644 --- a/js/energy/model/HistogramsModel.ts +++ b/js/energy/model/HistogramsModel.ts @@ -361,7 +361,6 @@ export default class HistogramsModel extends PhetioObject { */ private static readonly HistogramsModelIO = new IOType( 'HistogramsModelIO', { valueType: HistogramsModel, - defaultDeserializationMethod: 'applyState', stateSchema: HISTOGRAMS_MODEL_STATE_SCHEMA, // toStateObject: Use the default, which is derived from stateSchema. applyState: HistogramsModel.applyState