From e84bc1804909a7b79887b83ca489b8a0a0388a43 Mon Sep 17 00:00:00 2001 From: tschw Date: Sun, 7 Jun 2015 10:16:17 +0200 Subject: [PATCH] Removed getAttributesKeys. --- docs/api/renderers/webgl/WebGLProgram.html | 5 ----- src/renderers/webgl/WebGLProgram.js | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/docs/api/renderers/webgl/WebGLProgram.html b/docs/api/renderers/webgl/WebGLProgram.html index 097c6f5d50..8115c6080d 100644 --- a/docs/api/renderers/webgl/WebGLProgram.html +++ b/docs/api/renderers/webgl/WebGLProgram.html @@ -139,11 +139,6 @@ Returns a name-value mapping of all active vertex attribute locations. -

[method:Array getAttributesKeys]()

-
- Returns an array of all active vertex attribute names. -
-

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] diff --git a/src/renderers/webgl/WebGLProgram.js b/src/renderers/webgl/WebGLProgram.js index 136a44c7ae..9c5e977deb 100644 --- a/src/renderers/webgl/WebGLProgram.js +++ b/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 ++; -- GitLab