From 47504a068ee43969869c3e426c2ba2427b7316b3 Mon Sep 17 00:00:00 2001 From: PhilipRosedale Date: Fri, 26 Feb 2016 16:50:37 -0800 Subject: [PATCH] remove unused code --- examples/edit.js | 2 -- examples/libraries/entitySelectionTool.js | 21 --------------------- 2 files changed, 23 deletions(-) diff --git a/examples/edit.js b/examples/edit.js index fc04a0b26f..0e252bdf86 100644 --- a/examples/edit.js +++ b/examples/edit.js @@ -979,8 +979,6 @@ function mouseClickEvent(event) { if (!event.isShifted) { selectionManager.setSelections([foundEntity]); - Vec3.print("found object, intersection = ", result.intersection); - selectionManager.setPickPlanePosition(result.intersection); } else { selectionManager.addEntity(foundEntity, true); } diff --git a/examples/libraries/entitySelectionTool.js b/examples/libraries/entitySelectionTool.js index 6a7247aa57..015e169908 100644 --- a/examples/libraries/entitySelectionTool.js +++ b/examples/libraries/entitySelectionTool.js @@ -87,11 +87,6 @@ SelectionManager = (function() { y: 0, z: 0 }; - that.pickPlanePosition = { - x: 0, - y: 0, - z: 0 - }; that.saveProperties = function() { that.savedProperties = {}; @@ -119,13 +114,6 @@ SelectionManager = (function() { that._update(); }; - that.setPickPlanePosition = function(position) { - that.pickPlanePosition.x = position.x; - that.pickPlanePosition.y = position.y; - that.pickPlanePosition.z = position.z; - Vec3.print("that.pickPlanePosition = ", that.pickPlanePosition); - }; - that.addEntity = function(entityID, toggleSelection) { if (entityID) { var idx = -1; @@ -2327,15 +2315,6 @@ SelectionDisplay = (function() { var vector = Vec3.subtract(pick, initialXZPick); - Vec3.print("Pick Plane Position", translateXZTool.pickPlanePosition); - - /* - if (pickRay.origin.y < this.pickPlanePosition.y) { - vector.x *= -1.0; - vector.z *= -1.0; - } */ - - // If shifted, constrain to one axis if (event.isShifted) { if (Math.abs(vector.x) > Math.abs(vector.z)) {