removing unused variables

This commit is contained in:
Wayne Chen 2018-09-12 10:55:40 -07:00 committed by GitHub
parent a96e78c72d
commit 8bef0d0de4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,10 +21,6 @@ Script.include("/~/system/libraries/controllers.js");
this.otherHand = this.hand === RIGHT_HAND ? LEFT_HAND : RIGHT_HAND; this.otherHand = this.hand === RIGHT_HAND ? LEFT_HAND : RIGHT_HAND;
this.running = false; this.running = false;
// parameters for things to be working on
this.isObjectEntity = false;
this.objectID = null;
this.parameters = makeDispatcherModuleParameters( this.parameters = makeDispatcherModuleParameters(
160, 160,
this.hand === RIGHT_HAND ? ["rightHand"] : ["leftHand"], this.hand === RIGHT_HAND ? ["rightHand"] : ["leftHand"],
@ -133,9 +129,6 @@ Script.include("/~/system/libraries/controllers.js");
} }
if (this.parameters.handLaser.allwaysOn || isTriggerPressed) { if (this.parameters.handLaser.allwaysOn || isTriggerPressed) {
var intersection = controllerData.rayPicks[this.hand]; var intersection = controllerData.rayPicks[this.hand];
// the object is either an entity or an overlay.
this.isObjectEntity = (intersection.type === Picks.INTERSECTED_ENTITY);
this.objectID = intersection.objectID;
return makeRunningValues(true, [], []); return makeRunningValues(true, [], []);
} }
} }
@ -171,7 +164,6 @@ Script.include("/~/system/libraries/controllers.js");
this.deleteContextOverlay(); this.deleteContextOverlay();
this.running = false; this.running = false;
this.dominantHandOverride = false; this.dominantHandOverride = false;
this.objectID = null;
return makeRunningValues(false, [], []); return makeRunningValues(false, [], []);
}; };
} }