Skip to content

Commit

Permalink
delete unnecessary defaultDeserializationMethod: 'applyState', #77
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed May 13, 2024
1 parent 5d18097 commit af317b4
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion js/common/model/IdealGasLawParticleSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ export default class IdealGasLawParticleSystem extends PhetioObject {
*/
private static readonly IdealGasLawParticleSystemIO = new IOType<IdealGasLawParticleSystem, IdealGasLawParticleSystemStateObject>( '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
Expand Down
1 change: 0 additions & 1 deletion js/diffusion/model/DiffusionParticleSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ export default class DiffusionParticleSystem extends PhetioObject {
*/
private static readonly DiffusionParticleSystemIO = new IOType<DiffusionParticleSystem, DiffusionParticleSystemStateObject>( 'DiffusionParticleSystemIO', {
valueType: DiffusionParticleSystem,
defaultDeserializationMethod: 'applyState',
stateSchema: DIFFUSION_PARTICLE_SYSTEM_SCHEMA,
// toStateObject: Use the default, which is derived from stateSchema.
applyState: DiffusionParticleSystem.applyState
Expand Down
1 change: 0 additions & 1 deletion js/diffusion/model/ParticleFlowRateModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ export default class ParticleFlowRateModel extends PhetioObject {
*/
private static readonly ParticleFlowRateModelIO = new IOType<ParticleFlowRateModel, ParticleFlowRateModelStateObject>( 'ParticleFlowRateModelIO', {
valueType: ParticleFlowRateModel,
defaultDeserializationMethod: 'applyState',
stateSchema: PARTICLE_FLOW_RATE_MODEL_STATE_SCHEMA,
// toStateObject: Use the default, which is derived from stateSchema.
applyState: ParticleFlowRateModel.applyState
Expand Down
1 change: 0 additions & 1 deletion js/energy/model/AverageSpeedModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ export default class AverageSpeedModel extends PhetioObject {
*/
private static readonly AverageSpeedModelIO = new IOType<AverageSpeedModel, AverageSpeedModelStateObject>( 'AverageSpeedModelIO', {
valueType: AverageSpeedModel,
defaultDeserializationMethod: 'applyState',
stateSchema: AVERAGE_SPEED_MODEL_STATE_SCHEMA,
// toStateObject: Use the default, which is derived from stateSchema.
applyState: AverageSpeedModel.applyState
Expand Down
1 change: 0 additions & 1 deletion js/energy/model/HistogramsModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ export default class HistogramsModel extends PhetioObject {
*/
private static readonly HistogramsModelIO = new IOType<HistogramsModel, HistogramsModelStateObject>( 'HistogramsModelIO', {
valueType: HistogramsModel,
defaultDeserializationMethod: 'applyState',
stateSchema: HISTOGRAMS_MODEL_STATE_SCHEMA,
// toStateObject: Use the default, which is derived from stateSchema.
applyState: HistogramsModel.applyState
Expand Down

0 comments on commit af317b4

Please sign in to comment.