Skip to content

Commit

Permalink
Remove deprecated code. (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jan 18, 2024
1 parent 359f829 commit 0c2f362
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
10 changes: 0 additions & 10 deletions types/three/examples/jsm/utils/BufferGeometryUtils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,3 @@ export function deinterleaveGeometry(geometry: BufferGeometry): void;
* @param creaseAngle The crease angle in radians.
*/
export function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;

/**
* @deprecated Use mergeGeometries instead.
*/
export function mergeBufferGeometries(geometries: BufferGeometry[], useGroups?: boolean): BufferGeometry;

/**
* @deprecated Use mergeAttributes instead.
*/
export function mergeBufferAttributes(attributes: BufferAttribute[]): BufferAttribute;
17 changes: 0 additions & 17 deletions types/three/src/math/Triangle.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ export class Triangle {
getNormal(target: Vector3): Vector3;
getPlane(target: Plane): Plane;
getBarycoord(point: Vector3, target: Vector3): Vector3 | null;
/**
* @deprecated Triangle.getUV() has been renamed to Triangle.getInterpolation().
*/
getUV(point: Vector3, uv1: Vector2, uv2: Vector2, uv3: Vector2, target: Vector2): Vector2;
getInterpolation(point: Vector3, v1: Vector2, v2: Vector2, v3: Vector2, target: Vector2): Vector2 | null;
getInterpolation(point: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, target: Vector3): Vector3 | null;
getInterpolation(point: Vector3, v1: Vector4, v2: Vector4, v3: Vector4, target: Vector4): Vector4 | null;
Expand All @@ -56,19 +52,6 @@ export class Triangle {
static getNormal(a: Vector3, b: Vector3, c: Vector3, target: Vector3): Vector3;
static getBarycoord(point: Vector3, a: Vector3, b: Vector3, c: Vector3, target: Vector3): Vector3 | null;
static containsPoint(point: Vector3, a: Vector3, b: Vector3, c: Vector3): boolean;
/**
* @deprecated THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation().
*/
static getUV(
point: Vector3,
p1: Vector3,
p2: Vector3,
p3: Vector3,
uv1: Vector2,
uv2: Vector2,
uv3: Vector2,
target: Vector2,
): Vector2;
static getInterpolation(
point: Vector3,
p1: Vector3,
Expand Down
5 changes: 0 additions & 5 deletions types/three/src/objects/SkinnedMesh.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,4 @@ export class SkinnedMesh<
* @param vector
*/
applyBoneTransform(index: number, vector: Vector3): Vector3;

/**
* @deprecated {@link THREE.SkinnedMesh}: {@link boneTransform | .boneTransform()} was renamed to {@link applyBoneTransform | .applyBoneTransform()} in **r151**.
*/
boneTransform(index: number, target: Vector3): Vector3;
}

0 comments on commit 0c2f362

Please sign in to comment.