From 51cbadcad185e85fc6385d3fff005e01a2a2eed4 Mon Sep 17 00:00:00 2001
From: milad <milad@miladnazeri.com>
Date: Fri, 10 May 2019 14:41:55 -0700
Subject: [PATCH] Removed Selection related logic

---
 .../resources/modules/nameTagListManager.js    | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/scripts/system/simplifiedNametag/resources/modules/nameTagListManager.js b/scripts/system/simplifiedNametag/resources/modules/nameTagListManager.js
index 1d9e82338e..98f73456d6 100644
--- a/scripts/system/simplifiedNametag/resources/modules/nameTagListManager.js
+++ b/scripts/system/simplifiedNametag/resources/modules/nameTagListManager.js
@@ -430,22 +430,6 @@ function redraw(uuid) {
 // Add a user to the list.
 var DEFAULT_LIFETIME = entityProps.lifetime;
 
-// setup to get the outline in on mode
-var NAMETAG_SELECTION_LIST = "NAMETAG_SELECTION_LIST";
-var nametagSelectionProps = {
-    outlineUnoccludedColor: { red: 255, green: 255, blue: 255 },
-    outlineOccludedColor: { red: 235, green: 87, blue: 87 },
-    fillUnoccludedColor: { red: 235, green: 87, blue: 87 },
-    fillOccludedColor: { red: 235, green: 87, blue: 87 },
-    outlineUnoccludedAlpha: 1,
-    outlineOccludedAlpha: 0,
-    fillUnoccludedAlpha: 0,
-    fillOccludedAlpha: 0,
-    outlineWidth: 3,
-    isOutlineSmooth: true
-};
-Selection.enableListHighlight(NAMETAG_SELECTION_LIST, nametagSelectionProps);
-
 
 // add a user to our current selections
 function add(uuid) {
@@ -472,7 +456,6 @@ function add(uuid) {
 
     // Remove from list after lifetime is over
     if (avatarNametagMode === "on") {
-        Selection.addToSelectedItemsList(NAMETAG_SELECTION_LIST, "avatar", uuid);
         avatar.timeoutStarted = Script.setTimeout(function () {
             removeNametag(uuid);
         }, deleteEnttyInMiliseconds);
@@ -517,7 +500,6 @@ function removeNametag(uuid) {
     if (avatar) {
         avatar.nametag.destroy();
         delete _this.selectedAvatars[uuid];
-        Selection.removeFromSelectedItemsList(NAMETAG_SELECTION_LIST, "avatar", uuid);
         return _this;
     }