Explorar el Código

Removed getAttributesKeys.

tschw hace 10 años
padre
commit
e84bc18049

+ 0 - 5
docs/api/renderers/webgl/WebGLProgram.html

@@ -139,11 +139,6 @@
 		Returns a name-value mapping of all active vertex attribute locations.
 		</div>
 
-		<h3>[method:Array getAttributesKeys]()</h3>
-		<div>
-		Returns an array of all active vertex attribute names.
-		</div>
-
 		<h2>Source</h2>
 
 		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]

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

@@ -409,26 +409,16 @@ THREE.WebGLProgram = ( function () {
 		// set up caching for attribute keys and locations
 
 		var getAttributes = function() { return this._cachedAttributes; };
-		var getAttribKeys = function() { return this._cachedAttribKeys; };
 
 		this.getAttributes = function() {
 
 			var attributes = fetchAttributeLocations( gl, program );
 			this._cachedAttributes = attributes;
-			this._cachedAttribKeys = Object.keys( attributes );
 			this.getAttributes = getAttributes;
-			this.getAttributesKeys = getAttribKeys;
 			return attributes;
 
 		};
 
-		this.getAttributesKeys = function() {
-
-			this.attributes();
-			return this._cachedAttribKeys;
-
-		};
-
 		//
 
 		this.id = programIdCount ++;