From b47bdf8c7d734c263b92cfe3c12f1656f237f7ad Mon Sep 17 00:00:00 2001
From: Max <m.giller.dev@gmail.com>
Date: Fri, 12 Nov 2021 23:07:02 +0100
Subject: [PATCH] Removed commented out code

---
 knowledge-space.php | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/knowledge-space.php b/knowledge-space.php
index b54200d..d1f70c0 100644
--- a/knowledge-space.php
+++ b/knowledge-space.php
@@ -14,13 +14,10 @@ function ks_add_graph($atts = []): string
     $div = '<div id="3d-graph"></div>'; // The id "3d-graph" indicates, that the javascript associated with this should automatically be executed
 
     $script_path = 'build' . DIRECTORY_SEPARATOR . $GLOBALS['build'] . DIRECTORY_SEPARATOR . 'graph.js';
-    // $script = "<script src='$script_path'></script>";
-    //wp_enqueue_script('kg-script', $script_path);
     wp_enqueue_script("ks-display-js", plugins_url($script_path, __FILE__), array('jquery'), false);
     ks_localize();
 
     return $div;
-    // return $div . $variables . $script;
 }
 
 function ks_echo_graph($atts = []): void
@@ -54,12 +51,7 @@ function ks_add_editor($atts = [])
 function ks_add_editor_dependencies()
 {
     $script_path = 'build' . DIRECTORY_SEPARATOR . $GLOBALS['build'] . DIRECTORY_SEPARATOR . 'graph.js';
-
-    //    wp_enqueue_script('jquery');
     wp_enqueue_script("ks-editor-js", plugins_url($script_path, __FILE__), array('jquery'), false);
-    //wp_register_script("ks-editor-js", plugins_url($script_path, __FILE__), array('jquery'), false);
-
-    //wp_enqueue_script("ks-editor-js");
 
     $style_file_version = date("ymd-Gis", filemtime(plugin_dir_path(__FILE__) . "editor/css/editor.css"));
     wp_enqueue_style("ks-editor-css", plugins_url("editor/css/editor.css", __FILE__), array(), $style_file_version);
-- 
GitLab