Fix for bug 381096 (fix for ClassCastException)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.ui / src / org / eclipse / linuxtools / internal / lttng2 / kernel / ui / views / controlflow / ControlFlowEntry.java
index 0576b633b9b472191f2252e4f92ae4b316d52ae1..c7401d019da82597207de46b7109069c366eb1cf 100644 (file)
@@ -21,7 +21,7 @@ import org.eclipse.linuxtools.lttng2.kernel.core.trace.CtfKernelTrace;
 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeEvent;\r
 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;\r
 \r
-public class ControlFlowEntry implements ITimeGraphEntry, Comparable<ControlFlowEntry> {\r
+public class ControlFlowEntry implements ITimeGraphEntry {\r
     private int fThreadQuark;\r
     private CtfKernelTrace fTrace;\r
     private ControlFlowEntry fParent = null;\r
@@ -91,15 +91,6 @@ public class ControlFlowEntry implements ITimeGraphEntry, Comparable<ControlFlow
         return new EventIterator(fEventList, fZoomedEventList, startTime, stopTime);\r
     }\r
 \r
-    @Override\r
-    public int compareTo(ControlFlowEntry other) {\r
-        int result = this.fThreadId < other.fThreadId ? -1 : this.fThreadId > other.fThreadId ? 1 : 0;\r
-        if (result == 0) {\r
-            result = this.fStartTime < other.fStartTime ? -1 : this.fStartTime > other.fStartTime ? 1 : 0;\r
-        }\r
-        return result;\r
-    }\r
-\r
     public int getThreadQuark() {\r
         return fThreadQuark;\r
     }\r
This page took 0.024095 seconds and 5 git commands to generate.