From 4460c4ec7c8daebd40b07e7d5cde946f1720ab48 Mon Sep 17 00:00:00 2001
From: Harm Kube <h.kube@tu-braunschweig.de>
Date: Thu, 20 Jan 2022 16:29:28 +0100
Subject: [PATCH] Cleaning up some unused code

---
 display/display.css           | 14 --------------
 display/overlays/neighbors.js | 10 ++++++----
 2 files changed, 6 insertions(+), 18 deletions(-)

diff --git a/display/display.css b/display/display.css
index e5f5f68..1c8ece4 100644
--- a/display/display.css
+++ b/display/display.css
@@ -309,17 +309,3 @@
     flex-direction: row;
     overflow-x: auto;
 }
-
-.category-div {
-    padding: 0;
-    background-color: #5d5a5a;
-    color: #444;
-    cursor: pointer;
-    width: 5%;
-    height: 100%;
-    border: none;
-    outline: none;
-    float: left;
-    display: flex;
-    flex-direction: column;
-}
\ No newline at end of file
diff --git a/display/overlays/neighbors.js b/display/overlays/neighbors.js
index aeb26cf..55cb627 100644
--- a/display/overlays/neighbors.js
+++ b/display/overlays/neighbors.js
@@ -37,7 +37,6 @@ class NodeNeighborOverlay {
         );
         coll.className = "collapsible";
         coll.innerText = "Verwandte Inhalte";
-        // TODO: Scrolling wheel for content
         var contentTabs = Helpers.createDiv(
             "neighbor-content-tabs",
             bottomContainerDiv
@@ -54,7 +53,6 @@ class NodeNeighborOverlay {
             this.type === "link"
                 ? this.graph.edgeColors
                 : this.graph.nodeColors;
-        // TODO: Colors only fill little part of div
         for (const [cls, color] of Object.entries(colors)) {
 
 
@@ -64,7 +62,6 @@ class NodeNeighborOverlay {
             );
             collTab.className = "collapsible";
             collTab.innerText = cls;
-            //collTab.style.backgroundColor = color;
             collTab.style.borderLeftColor = color;
             collTab.style.borderLeftWidth = "12px";
             collTab.type = cls;
@@ -88,7 +85,8 @@ class NodeNeighborOverlay {
     }
 
     /**
-     * Clears the images from all tab content pages.
+     * Clears the images from all tab content pages and makes the object
+     * invisible.
      */
     clearTabContentPages() {
         for (const page of Object.values(this.tabContentPages)) {
@@ -151,6 +149,10 @@ class NodeNeighborOverlay {
         this.hideContentPages();
     }
 
+    /**
+     * Hides all the categories of a node that are not represented by a link
+     * to another neighbor.
+     */
     hideContentPages () {
         for (const page of Object.values(this.tabContentPages)) {
             if(!page.hasChildNodes()) {
-- 
GitLab