Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Aug 27, 2023
1 parent 323a5c5 commit 627302b
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions crates/re_space_view_spatial/src/parts/points3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,25 +227,6 @@ impl ViewPartSystem for Points3DPart {
}
}

/// Run 3 things in parallel
fn join3<A: Send, B: Send, C: Send>(
a: impl FnOnce() -> A + Send,
b: impl FnOnce() -> B + Send,
c: impl FnOnce() -> C + Send,
) -> (A, B, C) {
#[cfg(not(target_arch = "wasm32"))]
{
re_tracing::profile_function!();
let (a, (b, c)) = rayon::join(a, || rayon::join(b, c));
(a, b, c)
}

#[cfg(target_arch = "wasm32")]
{
(a(), b(), c())
}
}

/// Run 4 things in parallel
fn join4<A: Send, B: Send, C: Send, D: Send>(
a: impl FnOnce() -> A + Send,
Expand Down

0 comments on commit 627302b

Please sign in to comment.