remove debug prints

This commit is contained in:
James B. Pollack 2016-07-06 15:25:01 -07:00
parent 696169ed37
commit 5cb585aec3

View file

@ -29,7 +29,6 @@ function ThumbPad(hand) {
var _this = this; var _this = this;
this.buttonPress = function(value) { this.buttonPress = function(value) {
print('jbp pad press: ' + value + " on: " + _this.hand)
_this.buttonValue = value; _this.buttonValue = value;
}; };
@ -62,14 +61,11 @@ function Teleporter() {
this.updateConnected = null; this.updateConnected = null;
this.initialize = function() { this.initialize = function() {
print('jbp initialize')
this.createMappings(); this.createMappings();
this.disableGrab(); this.disableGrab();
}; };
this.createTargetOverlay = function() { this.createTargetOverlay = function() {
print('creating target overlay')
var targetOverlayProps = { var targetOverlayProps = {
url: TARGET_MODEL_URL, url: TARGET_MODEL_URL,
@ -81,7 +77,6 @@ function Teleporter() {
}; };
this.createMappings = function() { this.createMappings = function() {
print('jbp create mappings internal');
// peek at the trigger and thumbs to store their values // peek at the trigger and thumbs to store their values
teleporter.telporterMappingInternalName = 'Hifi-Teleporter-Internal-Dev-' + Math.random(); teleporter.telporterMappingInternalName = 'Hifi-Teleporter-Internal-Dev-' + Math.random();
teleporter.teleportMappingInternal = Controller.newMapping(teleporter.telporterMappingInternalName); teleporter.teleportMappingInternal = Controller.newMapping(teleporter.telporterMappingInternalName);
@ -90,7 +85,6 @@ function Teleporter() {
}; };
this.disableMappings = function() { this.disableMappings = function() {
print('jbp disable mappings internal')
Controller.disableMapping(teleporter.telporterMappingInternalName); Controller.disableMapping(teleporter.telporterMappingInternalName);
}; };
@ -99,7 +93,6 @@ function Teleporter() {
return; return;
} }
print('jbp hand on entering teleport mode: ' + hand);
inTeleportMode = true; inTeleportMode = true;
this.teleportHand = hand; this.teleportHand = hand;
this.initialize(); this.initialize();
@ -199,7 +192,6 @@ function Teleporter() {
} }
this.exitTeleportMode = function(value) { this.exitTeleportMode = function(value) {
print('jbp value on exit: ' + value);
Script.update.disconnect(this.update); Script.update.disconnect(this.update);
this.updateConnected = null; this.updateConnected = null;
this.disableMappings(); this.disableMappings();
@ -363,8 +355,6 @@ function Teleporter() {
}; };
this.leftLineOn = function(closePoint, farPoint, color) { this.leftLineOn = function(closePoint, farPoint, color) {
// draw a line
print('COLOR ON LINE : ' + JSON.stringify(color))
if (this.leftOverlayLine === null) { if (this.leftOverlayLine === null) {
var lineProperties = { var lineProperties = {
ignoreRayIntersection: true, // always ignore this ignoreRayIntersection: true, // always ignore this
@ -437,7 +427,6 @@ function Teleporter() {
this.teleport = function(value) { this.teleport = function(value) {
print('TELEPORT CALLED');
if (_this.intersection !== null) { if (_this.intersection !== null) {
var offset = getAvatarFootOffset(); var offset = getAvatarFootOffset();