Explorar o código

Examples: remove unnecessary checks (#23175)

Marco Fugaro %!s(int64=3) %!d(string=hai) anos
pai
achega
62fe59d708

+ 0 - 6
examples/jsm/modifiers/EdgeSplitModifier.js

@@ -181,12 +181,6 @@ class EdgeSplitModifier {
 
 		if ( geometry.index == null ) {
 
-			if ( BufferGeometryUtils === undefined ) {
-
-				throw new Error( 'THREE.EdgeSplitModifier relies on BufferGeometryUtils' );
-
-			}
-
 			geometry = BufferGeometryUtils.mergeVertices( geometry );
 
 		}

+ 0 - 10
examples/jsm/modifiers/SimplifyModifier.js

@@ -17,16 +17,6 @@ const _cb = new Vector3(), _ab = new Vector3();
 
 class SimplifyModifier {
 
-	constructor() {
-
-		if ( BufferGeometryUtils === undefined ) {
-
-			throw new Error( 'THREE.SimplifyModifier relies on BufferGeometryUtils' );
-
-		}
-
-	}
-
 	modify( geometry, count ) {
 
 		if ( geometry.isGeometry === true ) {