From e690cc3f34ca64da21fdf91c443b97c9b54dd033 Mon Sep 17 00:00:00 2001
From: Maximilian Giller <m.giller@tu-bs.de>
Date: Mon, 29 Aug 2022 19:42:34 +0200
Subject: [PATCH] Removes commented code

---
 src/editor/js/components/editor.tsx | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/src/editor/js/components/editor.tsx b/src/editor/js/components/editor.tsx
index 0807d4b..547d95a 100644
--- a/src/editor/js/components/editor.tsx
+++ b/src/editor/js/components/editor.tsx
@@ -102,24 +102,6 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
             return false;
         }
 
-        //     .onNodeDragEnd((node: any, translate: any) =>
-        //         Editor.globalState.onNodeDragEnd(node, translate)
-        //     )
-        //     .linkWidth((link: any) => Editor.globalState.linkWidth(link))
-        //     .linkDirectionalParticles(
-        //         Editor.globalState.linkDirectionalParticles()
-        //     )
-        //     .linkDirectionalParticleWidth((link: any) =>
-        //         Editor.globalState.linkDirectionalParticleWidth(link)
-        //     )
-        //     .onBackgroundClick((event: any) =>
-        //         Editor.globalState.onBackgroundClick(
-        //             event,
-        //             this.extractPositions(event)
-        //         )
-        //     )
-        //     .onLinkClick((link: any) => Editor.globalState.onLinkClick(link));
-
         // Set as new state
         console.log(newGraph);
         this.setState({
@@ -338,12 +320,6 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
         ctx.lineWidth = lineWidth;
         ctx.stroke();
 
-        // Only render strokes on last link
-        // var lastLink = graph.data[Graph.GRAPH_LINKS][graph.data[Graph.GRAPH_LINKS].length - 1];
-        // if (link === lastLink) {
-        //     ctx.stroke();
-        // }
-
         return undefined;
     }
 
-- 
GitLab