瀏覽代碼

remove deprecated code

aardgoose 6 年之前
父節點
當前提交
ff5e821504
共有 1 個文件被更改,包括 0 次插入25 次删除
  1. 0 25
      src/renderers/webgl/WebGLProgram.js

+ 0 - 25
src/renderers/webgl/WebGLProgram.js

@@ -738,31 +738,6 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters,
 
 	};
 
-	// DEPRECATED
-
-	Object.defineProperties( this, {
-
-		uniforms: {
-			get: function () {
-
-				console.warn( 'THREE.WebGLProgram: .uniforms is now .getUniforms().' );
-				return this.getUniforms();
-
-			}
-		},
-
-		attributes: {
-			get: function () {
-
-				console.warn( 'THREE.WebGLProgram: .attributes is now .getAttributes().' );
-				return this.getAttributes();
-
-			}
-		}
-
-	} );
-
-
 	//
 
 	this.name = shader.name;