Explorar el Código

Remove redundant code

getWireframeAttribute is only called with a bufferGeometry.
aardgoose hace 7 años
padre
commit
e73f4549ec
Se han modificado 1 ficheros con 0 adiciones y 11 borrados
  1. 0 11
      src/renderers/webgl/WebGLGeometries.js

+ 0 - 11
src/renderers/webgl/WebGLGeometries.js

@@ -32,17 +32,6 @@ function WebGLGeometries( gl, attributes, info ) {
 
 		delete geometries[ geometry.id ];
 
-		// TODO Remove duplicate code
-
-		var attribute = wireframeAttributes[ geometry.id ];
-
-		if ( attribute ) {
-
-			attributes.remove( attribute );
-			delete wireframeAttributes[ geometry.id ];
-
-		}
-
 		attribute = wireframeAttributes[ buffergeometry.id ];
 
 		if ( attribute ) {