Skip to content

Commit

Permalink
analysis.graph: Cleanup non-API deprecation issues in dependency graph
Browse files Browse the repository at this point in the history
Fixes issue eclipse-tracecompass#87

[Removed] CriticalPathModule
[Removed] CriticalPathPalette

Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
  • Loading branch information
PatrickTasse committed May 23, 2024
1 parent f5c4c28 commit b46fbfb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
import org.eclipse.tracecompass.analysis.graph.core.graph.WorkerSerializer;
import org.eclipse.tracecompass.common.core.NonNullUtils;
import org.eclipse.tracecompass.internal.analysis.graph.core.Activator;
import org.eclipse.tracecompass.internal.analysis.graph.core.criticalpath.CriticalPathModule;
import org.eclipse.tracecompass.internal.analysis.graph.core.criticalpath.Messages;
import org.eclipse.tracecompass.internal.analysis.graph.core.criticalpath.OSCriticalPathAlgorithm;
import org.eclipse.tracecompass.tmf.core.analysis.TmfAbstractAnalysisModule;
import org.eclipse.tracecompass.tmf.core.exceptions.TmfAnalysisException;
import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
import org.eclipse.tracecompass.tmf.core.trace.TmfTraceManager;
Expand All @@ -41,7 +41,13 @@
* @author Geneviève Bastien
* @since 4.0
*/
public abstract class AbstractCriticalPathModule extends CriticalPathModule {
public abstract class AbstractCriticalPathModule extends TmfAbstractAnalysisModule implements ICriticalPathProvider {

/**
* Analysis ID for this module
* @since 5.0
*/
public static final String ANALYSIS_ID = "org.eclipse.tracecompass.analysis.graph.core.criticalpath"; //$NON-NLS-1$

/** Worker_id parameter name */
public static final String PARAM_WORKER = "workerid"; //$NON-NLS-1$
Expand All @@ -62,7 +68,6 @@ public abstract class AbstractCriticalPathModule extends CriticalPathModule {
* @since 1.1
*/
public AbstractCriticalPathModule(AbstractTmfGraphBuilderModule graph) {
super(graph);
addParameter(PARAM_WORKER);
setId(ANALYSIS_ID);
fGraphModule = graph;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.eclipse.tracecompass.analysis.graph.core.graph.ITmfGraph;
import org.eclipse.tracecompass.analysis.graph.core.graph.ITmfGraphVisitor;
import org.eclipse.tracecompass.analysis.graph.core.graph.ITmfVertex;
import org.eclipse.tracecompass.analysis.graph.core.graph.TmfGraphFactory;
import org.eclipse.tracecompass.common.core.NonNullUtils;
import org.eclipse.tracecompass.internal.analysis.graph.core.base.TmfEdge.EdgeType;
import org.eclipse.tracecompass.internal.analysis.graph.core.base.TmfVertex.EdgeDirection;
Expand All @@ -55,10 +54,7 @@
*
* @author Francis Giraldeau
* @author Geneviève Bastien
* @deprecated Use the {@link ITmfGraph} API instead, and the
* {@link TmfGraphFactory} to create new graphs.
*/
@Deprecated
public class TmfGraph {

private final ListMultimap<IGraphWorker, TmfVertex> fNodeMap;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
*
* @author Geneviève Bastien
*/
@SuppressWarnings("deprecation")
public class TmfGraphLegacyWrapper implements ITmfGraph {

/* Latch tracking if the graph is done building or not */
Expand Down

0 comments on commit b46fbfb

Please sign in to comment.