Skip to content

Commit

Permalink
analysis.os: Remove deprecated APIs in OsSystemModel
Browse files Browse the repository at this point in the history
Deprecated in patch:
https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/182723

Fixes issue #87

[Removed] OsSystemModel.addWorker(OsWorker)
[Removed] OsSystemModel.findWorker(HostThread)

Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
  • Loading branch information
PatrickTasse committed May 22, 2024
1 parent a4218c9 commit 5413e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
Bundle-Version: 8.2.1.qualifier
Bundle-Version: 9.0.0.qualifier
Bundle-Localization: plugin
Bundle-SymbolicName: org.eclipse.tracecompass.analysis.os.linux.core;singleton:=true
Bundle-Activator: org.eclipse.tracecompass.internal.analysis.os.linux.core.Activator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2015, 2022 École Polytechnique de Montréal
* Copyright (c) 2015, 2024 École Polytechnique de Montréal and others
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
Expand Down Expand Up @@ -74,19 +74,6 @@ public void cacheTidOnCpu(Integer cpu, HostThread ht) {
return findWorker(ht, cpu);
}

/**
* Return the worker associated with this host TID
*
* @param ht
* The host thread associated with a worker
* @return The {@link OsWorker} associated with a host thread
* @deprecated Use the {@link #findWorker(HostThread, Integer)} instead with a null CPU
*/
@Deprecated
public @Nullable OsWorker findWorker(HostThread ht) {
return fWorkerMap.get(ht);
}

/**
* Return the worker associated with this host TID
*
Expand All @@ -105,18 +92,6 @@ public void cacheTidOnCpu(Integer cpu, HostThread ht) {
return fWorkerMap.get(ht);
}

/**
* Add a new worker to the system
*
* @param worker
* The worker to add
* @deprecated Use the {@link #addWorker(OsWorker, Integer)} instead
*/
@Deprecated
public void addWorker(OsWorker worker) {
fWorkerMap.put(worker.getHostThread(), worker);
}

/**
* Add a new worker to the system
*
Expand Down

0 comments on commit 5413e9d

Please sign in to comment.