Fix warnings and 2D compilation when parallelism is ON but SIMD is OFF.

This commit is contained in:
Crozet Sébastien
2021-01-23 12:58:45 +01:00
parent 57072f3ba7
commit 00caa7ce35
7 changed files with 13 additions and 65 deletions

View File

@@ -67,9 +67,6 @@ type Callbacks = Vec<
#[allow(dead_code)]
impl Harness {
pub fn new_empty() -> Self {
#[cfg(feature = "parallel")]
let num_threads = num_cpus::get_physical();
let contact_channel = crossbeam::channel::unbounded();
let proximity_channel = crossbeam::channel::unbounded();
let event_handler = ChannelEventCollector::new(proximity_channel.0, contact_channel.0);