Skip to content

Commit

Permalink
Update Three.Legacy.js
Browse files Browse the repository at this point in the history
Remove legacy code in context of `CatmullRomCurve3`.
  • Loading branch information
Mugen87 committed Feb 7, 2021
1 parent 7aadb7e commit 771ec7c
Showing 1 changed file with 0 additions and 61 deletions.
61 changes: 0 additions & 61 deletions src/Three.Legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { Uniform } from './core/Uniform.js';
import { Raycaster } from './core/Raycaster.js';
import { Curve } from './extras/core/Curve.js';
import { Path } from './extras/core/Path.js';
import { CatmullRomCurve3 } from './extras/curves/CatmullRomCurve3.js';
import { AxesHelper } from './helpers/AxesHelper.js';
import { BoxHelper } from './helpers/BoxHelper.js';
import { GridHelper } from './helpers/GridHelper.js';
Expand Down Expand Up @@ -264,66 +263,6 @@ Object.assign( Path.prototype, {

//

export function ClosedSplineCurve3( points ) {

console.warn( 'THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.' );

CatmullRomCurve3.call( this, points );
this.type = 'catmullrom';
this.closed = true;

}

ClosedSplineCurve3.prototype = Object.create( CatmullRomCurve3.prototype );

//

export function SplineCurve3( points ) {

console.warn( 'THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.' );

CatmullRomCurve3.call( this, points );
this.type = 'catmullrom';

}

SplineCurve3.prototype = Object.create( CatmullRomCurve3.prototype );

//

export function Spline( points ) {

console.warn( 'THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead.' );

CatmullRomCurve3.call( this, points );
this.type = 'catmullrom';

}

Spline.prototype = Object.create( CatmullRomCurve3.prototype );

Object.assign( Spline.prototype, {

initFromArray: function ( /* a */ ) {

console.error( 'THREE.Spline: .initFromArray() has been removed.' );

},
getControlPointsArray: function ( /* optionalTarget */ ) {

console.error( 'THREE.Spline: .getControlPointsArray() has been removed.' );

},
reparametrizeByArcLength: function ( /* samplingCoef */ ) {

console.error( 'THREE.Spline: .reparametrizeByArcLength() has been removed.' );

}

} );

//

export function AxisHelper( size ) {

console.warn( 'THREE.AxisHelper has been renamed to THREE.AxesHelper.' );
Expand Down

0 comments on commit 771ec7c

Please sign in to comment.