Skip to content

Commit

Permalink
remove deprecated code, phetsims/build-a-nucleus#124
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 16, 2023
1 parent ba758c9 commit 27317d7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions js/Matrix4.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

/* eslint-disable bad-sim-text */

import EnumerationDeprecated from '../../phet-core/js/EnumerationDeprecated.js';
import Enumeration from '../../phet-core/js/Enumeration.js';
import EnumerationValue from '../../phet-core/js/EnumerationValue.js';
import dot from './dot.js';
import Vector3 from './Vector3.js';
import Vector4 from './Vector4.js';
Expand Down Expand Up @@ -975,15 +976,16 @@ class Matrix4 {

dot.register( 'Matrix4', Matrix4 );

const Types = EnumerationDeprecated.byKeys( [
'OTHER',
'IDENTITY',
'TRANSLATION_3D',
'SCALING',
'AFFINE'
] );
class Types extends EnumerationValue {
static OTHER = new Types();
static IDENTITY = new Types();
static TRANSLATION_3D = new Types();
static SCALING = new Types();
static AFFINE = new Types();
static enumeration = new Enumeration( Types );
}

// @public {EnumerationDeprecated}
// @public {Enumeration}
Matrix4.Types = Types;

// @public {Matrix4}
Expand Down

0 comments on commit 27317d7

Please sign in to comment.