analysis: Add root trace entries to Control Flow view
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.ui / src / org / eclipse / tracecompass / internal / analysis / os / linux / ui / views / controlflow / IControlFlowEntryComparator.java
index eaf69492360e0f092f5cd1d985599ff01230c305..ad633d5f935b1f37fbf31d75c1b04caafce1137a 100644 (file)
@@ -11,7 +11,6 @@ package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.controlflow
 import java.util.Comparator;
 
 import org.eclipse.jdt.annotation.Nullable;
-import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
 import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
 
 /**
@@ -86,26 +85,4 @@ public interface IControlFlowEntryComparator {
         }
     };
 
-    /**
-     * Trace Comparator (uses trace start time and name)
-     */
-    Comparator<ITimeGraphEntry> TRACE_COMPARATOR = new Comparator<ITimeGraphEntry>() {
-        @Override
-        public int compare(@Nullable ITimeGraphEntry o1, @Nullable ITimeGraphEntry o2) {
-            if (o1 == null || o2 == null) {
-                throw new IllegalArgumentException();
-            }
-            int result = 0;
-            if ((o1 instanceof ControlFlowEntry) && (o2 instanceof ControlFlowEntry)) {
-                ITmfTrace trace1 = ((ControlFlowEntry) o1).getTrace();
-                ITmfTrace trace2 = ((ControlFlowEntry) o2).getTrace();
-                result = trace1.getStartTime().compareTo(trace2.getStartTime());
-                if (result == 0) {
-                    result = trace1.getName().compareTo(trace2.getName());
-                }
-            }
-            return result;
-        }
-    };
-
 }
This page took 0.029081 seconds and 5 git commands to generate.