From d577493d5efdcafd58a886988513865a8f8c16c6 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 20 Oct 2016 16:39:35 -0700 Subject: [PATCH] Remove unneeded comments in tutorial scripts --- tutorial/entityData.js | 1 - tutorial/fuse.js | 1 - tutorial/fuseCollider.js | 1 - tutorial/tutorial.js | 9 --------- 4 files changed, 12 deletions(-) diff --git a/tutorial/entityData.js b/tutorial/entityData.js index 407e6e6b00..b14185e78f 100644 --- a/tutorial/entityData.js +++ b/tutorial/entityData.js @@ -60,7 +60,6 @@ birdFirework2 = { "z": 0 }, "id": "{ba067084-8d0f-4eeb-a8a1-c6814527c1bb}", - //"modelURL": "atp:/tutorial_models/statuebird4.fbx", "modelURL": "atp:/tutorial_models/bomb2.fbx", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "position": { diff --git a/tutorial/fuse.js b/tutorial/fuse.js index 73a3a697bd..59306f4113 100644 --- a/tutorial/fuse.js +++ b/tutorial/fuse.js @@ -84,7 +84,6 @@ var self = this; Script.setTimeout(function() { debug("Setting off fireworks"); - //var spinnerID = Utils.findEntity({ name: "tutorial/equip/spinner" }, 20); var spinnerID = "{dd13fcd5-616f-4749-ab28-2e1e8bc512e9}"; Entities.callEntityMethod(spinnerID, "onLit"); injector.stop(); diff --git a/tutorial/fuseCollider.js b/tutorial/fuseCollider.js index 147444ac1d..953fcd316d 100644 --- a/tutorial/fuseCollider.js +++ b/tutorial/fuseCollider.js @@ -6,7 +6,6 @@ Fuse.prototype = { onLit: function() { print("fuseCollider.js | Lit", this.entityID); - //var fuseID = Utils.findEntity({ name: "tutorial/equip/fuse" }, 20); var fuseID = "{c8944a13-9acb-4d77-b1ee-851845e98357}" Entities.callEntityMethod(fuseID, "light"); }, diff --git a/tutorial/tutorial.js b/tutorial/tutorial.js index ea8dd792de..361d345011 100644 --- a/tutorial/tutorial.js +++ b/tutorial/tutorial.js @@ -193,7 +193,6 @@ function deleteEntitiesWithTag(tag) { } } function editEntitiesWithTag(tag, propertiesOrFn) { - //var entityIDs = findEntitiesWithTag(tag); var entities = TUTORIAL_TAG_TO_ENTITY_IDS_MAP[tag]; debug("Editing tag: ", tag); @@ -665,12 +664,6 @@ stepEquip.prototype = { this.currentPart = this.PART1; function createLighter() { - //var boxSpawnID = findEntity({ name: GUN_SPAWN_NAME }, 10000); - //if (!boxSpawnID) { - //info("Error creating block, cannot find spawn"); - //return null; - //} - var transform = {}; var boxSpawnProps = getEntityWithName(GUN_SPAWN_NAME); @@ -855,8 +848,6 @@ stepTeleport.prototype = { Messages.sendLocalMessage('Hifi-Teleport-Disabler', 'none'); // Wait until touching teleport pad... - //var padID = findEntity({ name: TELEPORT_PAD_NAME }, 100); - //var padProps = Entities.getEntityProperties(padID, ["position", "dimensions"]); var padProps = getEntityWithName(TELEPORT_PAD_NAME); var xMin = padProps.position.x - padProps.dimensions.x / 2; var xMax = padProps.position.x + padProps.dimensions.x / 2;