diff options
| author | Kat Perez <[email protected]> | 2025-05-08 13:41:23 -0400 |
|---|---|---|
| committer | Kat Perez <[email protected]> | 2025-05-08 13:46:41 -0400 |
| commit | 194a3044acb5cd9691ced78596b9fd81e6884667 (patch) | |
| tree | 95ce5561fec6da9a8ac2386fde0426ac623415a8 | |
| parent | 3b873bb6bb51b9bdac9272b5ec629a6ac54a89f7 (diff) | |
remove unused task_id
| -rw-r--r-- | embassy-executor/src/raw/trace.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/embassy-executor/src/raw/trace.rs b/embassy-executor/src/raw/trace.rs index b30f23468..04e9d234f 100644 --- a/embassy-executor/src/raw/trace.rs +++ b/embassy-executor/src/raw/trace.rs | |||
| @@ -216,9 +216,6 @@ impl TaskTracker { | |||
| 216 | /// and names, which are useful for debugging, logging, and performance analysis. | 216 | /// and names, which are useful for debugging, logging, and performance analysis. |
| 217 | #[cfg(feature = "trace")] | 217 | #[cfg(feature = "trace")] |
| 218 | pub trait TaskRefTrace { | 218 | pub trait TaskRefTrace { |
| 219 | /// Get the ID for a task | ||
| 220 | fn as_id(self) -> u32; | ||
| 221 | |||
| 222 | /// Get the name for a task | 219 | /// Get the name for a task |
| 223 | fn name(&self) -> Option<&'static str>; | 220 | fn name(&self) -> Option<&'static str>; |
| 224 | 221 | ||
| @@ -234,10 +231,6 @@ pub trait TaskRefTrace { | |||
| 234 | 231 | ||
| 235 | #[cfg(feature = "trace")] | 232 | #[cfg(feature = "trace")] |
| 236 | impl TaskRefTrace for TaskRef { | 233 | impl TaskRefTrace for TaskRef { |
| 237 | fn as_id(self) -> u32 { | ||
| 238 | self.ptr.as_ptr() as u32 | ||
| 239 | } | ||
| 240 | |||
| 241 | fn name(&self) -> Option<&'static str> { | 234 | fn name(&self) -> Option<&'static str> { |
| 242 | self.header().name | 235 | self.header().name |
| 243 | } | 236 | } |
| @@ -331,8 +324,6 @@ pub(crate) fn poll_start(executor: &SyncExecutor) { | |||
| 331 | 324 | ||
| 332 | #[inline] | 325 | #[inline] |
| 333 | pub(crate) fn task_new(executor: &SyncExecutor, task: &TaskRef) { | 326 | pub(crate) fn task_new(executor: &SyncExecutor, task: &TaskRef) { |
| 334 | let task_id = task.as_ptr() as u32; | ||
| 335 | |||
| 336 | #[cfg(not(feature = "rtos-trace"))] | 327 | #[cfg(not(feature = "rtos-trace"))] |
| 337 | unsafe { | 328 | unsafe { |
| 338 | _embassy_trace_task_new(executor as *const _ as u32, task.as_ptr() as u32) | 329 | _embassy_trace_task_new(executor as *const _ as u32, task.as_ptr() as u32) |
| @@ -347,8 +338,6 @@ pub(crate) fn task_new(executor: &SyncExecutor, task: &TaskRef) { | |||
| 347 | 338 | ||
| 348 | #[inline] | 339 | #[inline] |
| 349 | pub(crate) fn task_end(executor: *const SyncExecutor, task: &TaskRef) { | 340 | pub(crate) fn task_end(executor: *const SyncExecutor, task: &TaskRef) { |
| 350 | let task_id = task.as_ptr() as u32; | ||
| 351 | |||
| 352 | #[cfg(not(feature = "rtos-trace"))] | 341 | #[cfg(not(feature = "rtos-trace"))] |
| 353 | unsafe { | 342 | unsafe { |
| 354 | _embassy_trace_task_end(executor as u32, task.as_ptr() as u32) | 343 | _embassy_trace_task_end(executor as u32, task.as_ptr() as u32) |
| @@ -451,7 +440,7 @@ impl rtos_trace::RtosTraceOSCallbacks for crate::raw::SyncExecutor { | |||
| 451 | stack_base: 0, | 440 | stack_base: 0, |
| 452 | stack_size: 0, | 441 | stack_size: 0, |
| 453 | }; | 442 | }; |
| 454 | rtos_trace::trace::task_send_info(task.as_id(), info); | 443 | rtos_trace::trace::task_send_info(task.id(), info); |
| 455 | }); | 444 | }); |
| 456 | } | 445 | } |
| 457 | fn time() -> u64 { | 446 | fn time() -> u64 { |
