Skip to content

Commit

Permalink
Core: Remove deprecated code. (mrdoob#24286)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Jun 30, 2022
1 parent ce8bcf6 commit 637067e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
11 changes: 1 addition & 10 deletions src/geometries/ExtrudeGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ExtrudeGeometry extends BufferGeometry {

const curveSegments = options.curveSegments !== undefined ? options.curveSegments : 12;
const steps = options.steps !== undefined ? options.steps : 1;
let depth = options.depth !== undefined ? options.depth : 1;
const depth = options.depth !== undefined ? options.depth : 1;

let bevelEnabled = options.bevelEnabled !== undefined ? options.bevelEnabled : true;
let bevelThickness = options.bevelThickness !== undefined ? options.bevelThickness : 0.2;
Expand All @@ -84,15 +84,6 @@ class ExtrudeGeometry extends BufferGeometry {

const uvgen = options.UVGenerator !== undefined ? options.UVGenerator : WorldUVGenerator;

// deprecated options

if ( options.amount !== undefined ) {

console.warn( 'THREE.ExtrudeBufferGeometry: amount has been renamed to depth.' );
depth = options.amount;

}

//

let extrudePts, extrudeByPath = false;
Expand Down
9 changes: 0 additions & 9 deletions src/loaders/ObjectLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,15 +1085,6 @@ class ObjectLoader extends Loader {

}

/* DEPRECATED */

setTexturePath( value ) {

console.warn( 'THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath().' );
return this.setResourcePath( value );

}

}

const TEXTURE_MAPPING = {
Expand Down
7 changes: 0 additions & 7 deletions src/math/Quaternion.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ class Quaternion {

}

static slerp( qa, qb, qm, t ) {

console.warn( 'THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead.' );
return qm.slerpQuaternions( qa, qb, t );

}

static slerpFlat( dst, dstOffset, src0, srcOffset0, src1, srcOffset1, t ) {

// fuzz-free, array-based Quaternion SLERP operation
Expand Down

0 comments on commit 637067e

Please sign in to comment.