Browse Source

Removed unused variables.

Mr.doob 9 years ago
parent
commit
eae7ce4527

+ 0 - 4
src/animation/AnimationAction.js

@@ -122,8 +122,6 @@ AnimationAction._new.prototype = {
 
 
 	isRunning: function() {
 	isRunning: function() {
 
 
-		var start = this._startTime;
-
 		return this.enabled && ! this.paused && this.timeScale !== 0 &&
 		return this.enabled && ! this.paused && this.timeScale !== 0 &&
 				this._startTime === null && this._mixer._isActiveAction( this );
 				this._startTime === null && this._mixer._isActiveAction( this );
 
 
@@ -190,8 +188,6 @@ AnimationAction._new.prototype = {
 
 
 	crossFadeFrom: function( fadeOutAction, duration, warp ) {
 	crossFadeFrom: function( fadeOutAction, duration, warp ) {
 
 
-		var mixer = this._mixer;
-
 		fadeOutAction.fadeOut( duration );
 		fadeOutAction.fadeOut( duration );
 		this.fadeIn( duration );
 		this.fadeIn( duration );
 
 

+ 0 - 1
src/animation/AnimationObjectGroup.js

@@ -168,7 +168,6 @@ AnimationObjectGroup.prototype = {
 	remove: function( var_args ) {
 	remove: function( var_args ) {
 
 
 		var objects = this._objects,
 		var objects = this._objects,
-			nObjects = objects.length,
 			nCachedObjects = this.nCachedObjects_,
 			nCachedObjects = this.nCachedObjects_,
 			indicesByUUID = this._indicesByUUID,
 			indicesByUUID = this._indicesByUUID,
 			bindings = this._bindings,
 			bindings = this._bindings,

+ 0 - 1
src/extras/geometries/LatheBufferGeometry.js

@@ -47,7 +47,6 @@ function LatheBufferGeometry ( points, segments, phiStart, phiLength ) {
 
 
 	// helper variables
 	// helper variables
 	var index = 0, indexOffset = 0, base;
 	var index = 0, indexOffset = 0, base;
-	var inversePointLength = 1.0 / ( points.length - 1 );
 	var inverseSegments = 1.0 / segments;
 	var inverseSegments = 1.0 / segments;
 	var vertex = new Vector3();
 	var vertex = new Vector3();
 	var uv = new Vector2();
 	var uv = new Vector2();

+ 0 - 7
src/renderers/webgl/WebGLUniforms.js

@@ -79,13 +79,6 @@ WebGLUniforms = ( function() { // scope
 		arrayCacheF32 = [],
 		arrayCacheF32 = [],
 		arrayCacheI32 = [],
 		arrayCacheI32 = [],
 
 
-		uncacheTemporaryArrays = function() {
-
-			arrayCacheF32.length = 0;
-			arrayCacheI32.length = 0;
-
-		},
-
 	// Flattening for arrays of vectors and matrices
 	// Flattening for arrays of vectors and matrices
 
 
 		flatten = function( array, nBlocks, blockSize ) {
 		flatten = function( array, nBlocks, blockSize ) {