Skip to content

Commit

Permalink
rm unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
s5suzuki committed Oct 28, 2024
1 parent 2a5f3e8 commit ccf0cdf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 22 deletions.
13 changes: 2 additions & 11 deletions autd3-driver/src/datagram/gain/boxed.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
use std::collections::HashMap;

use super::{Gain, GainContextGenerator, GainOperationGenerator};
use crate::derive::*;
pub use crate::firmware::operation::GainContext;
use crate::{
derive::{DatagramS, Geometry, Segment, TransitionMode},
error::AUTDInternalError,
firmware::fpga::Drive,
geometry::{Device, Transducer},
};

use autd3_derive::Gain;
use bit_vec::BitVec;
Expand Down Expand Up @@ -138,11 +133,7 @@ pub mod tests {
use super::*;
use crate::datagram::gain::tests::TestGain;

use crate::{
derive::*,
firmware::fpga::{EmitIntensity, Phase},
geometry::tests::create_geometry,
};
use crate::geometry::tests::create_geometry;

const NUM_TRANSDUCERS: usize = 2;

Expand Down
1 change: 0 additions & 1 deletion autd3-driver/src/datagram/info.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::time::Duration;

use crate::{
datagram::*,
Expand Down
10 changes: 2 additions & 8 deletions autd3-driver/src/datagram/modulation/boxed.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
use autd3_derive::Modulation;

use super::{Modulation, ModulationOperationGenerator, ModulationProperty};
use crate::{
defined::DEFAULT_TIMEOUT,
derive::DatagramS,
error::AUTDInternalError,
firmware::fpga::{LoopBehavior, SamplingConfig, Segment, TransitionMode},
geometry::Geometry,
};
use crate::derive::*;

#[cfg(not(feature = "lightweight"))]
type BoxedFmt = Box<dyn Fn(&mut std::fmt::Formatter<'_>) -> std::fmt::Result>;
Expand Down Expand Up @@ -87,7 +81,7 @@ where
#[cfg(test)]
pub mod tests {
use super::*;
use crate::{datagram::modulation::tests::TestModulation, derive::*};
use crate::datagram::modulation::tests::TestModulation;

#[test]
fn test() {
Expand Down
1 change: 0 additions & 1 deletion autd3-driver/src/datagram/segment.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::time::Duration;

use crate::{
datagram::*,
Expand Down
2 changes: 1 addition & 1 deletion autd3-driver/src/datagram/silencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use autd3_derive::Builder;

use crate::{
defined::ULTRASOUND_PERIOD,
derive::{Geometry, SamplingConfig, DEFAULT_TIMEOUT},
derive::{Geometry, SamplingConfig},
error::AUTDInternalError,
firmware::{
fpga::{SilencerTarget, SILENCER_STEPS_INTENSITY_DEFAULT, SILENCER_STEPS_PHASE_DEFAULT},
Expand Down

0 comments on commit ccf0cdf

Please sign in to comment.