testbed: Remove use of missing log feature (#684)

This code has been here but not used for a long time. There's no
log feature (or dependency) within the testbed crates.
This commit is contained in:
Bruce Mitchener
2024-07-19 21:35:56 +07:00
committed by GitHub
parent 0ff55411a4
commit 55a7d8b7ad
2 changed files with 0 additions and 14 deletions

View File

@@ -3,10 +3,6 @@
extern crate nalgebra as na;
#[cfg(feature = "log")]
#[macro_use]
extern crate log;
pub use crate::graphics::{BevyMaterial, GraphicsManager};
pub use crate::harness::plugin::HarnessPlugin;
pub use crate::physics::PhysicsState;

View File

@@ -56,7 +56,6 @@ pub enum RunMode {
Step,
}
#[cfg(not(feature = "log"))]
fn usage(exe_name: &str) {
println!("Usage: {} [OPTION] ", exe_name);
println!();
@@ -65,15 +64,6 @@ fn usage(exe_name: &str) {
println!(" --pause - do not start the simulation right away.");
}
#[cfg(feature = "log")]
fn usage(exe_name: &str) {
info!("Usage: {} [OPTION] ", exe_name);
info!("");
info!("Options:");
info!(" --help - prints this help message and exits.");
info!(" --pause - do not start the simulation right away.");
}
bitflags::bitflags! {
#[derive(Copy, Clone, PartialEq, Eq, Debug, Default)]
pub struct TestbedStateFlags: u32 {