tmf: Delete unused code in GraphNode
authorJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Wed, 30 Sep 2015 14:30:46 +0000 (10:30 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Thu, 1 Oct 2015 18:05:41 +0000 (14:05 -0400)
Change-Id: Iab9a0769235f3b05ed25100e3c821d283a6e0422
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/57087
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/uml2sd/core/GraphNode.java

index d8aa8f7b73196265b208241a78f78c8ccaa73d94..d7a2db9460079c1666c64157129239ef4643b91f 100755 (executable)
@@ -513,9 +513,7 @@ public abstract class GraphNode {
             String nodeType = entry.getKey();
             int direction = 1;
             int drawIndex = fIndexes.get(nodeType).intValue();
-            /*
-             * if (x==0) { drawIndex = 0; indexes.put(nodeType,new Integer(drawIndex)); }
-             */
+
             if ((entry.getValue() != null) && (entry.getValue().size() > 1)) {
                 if (entry.getValue().get(drawIndex).positiveDistanceToPoint(x, y)) {
                     direction = -1;
@@ -570,8 +568,7 @@ public abstract class GraphNode {
                         }
                     } else {
                         if (currentNode.getBackComparator() == null) {
-                            if // (currentNode.isVisible(x,y,width,height)
-                            (!currentNode.positiveDistanceToPoint(x, y)) {
+                            if (!currentNode.positiveDistanceToPoint(x, y)) {
                                 break;
                             }
                         } else {
@@ -588,7 +585,6 @@ public abstract class GraphNode {
 
                 entry.setValue(fForwardNodes.get(nodeType));
                 if ((fBackwardNodes.get(nodeType) != null) && (direction == -1)) {
-                    // nodes.put(nodeType,fnodes.get(nodeType));
                     int index = fIndexes.get(nodeType).intValue();
                     List<GraphNode> list = entry.getValue();
                     List<GraphNode> backList = fBackwardNodes.get(nodeType);
This page took 0.025504 seconds and 5 git commands to generate.