Skip to content

Commit 21f5f78

Browse files
committed
Remove duplicate type
1 parent 8e8698a commit 21f5f78

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

core/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ mod sig;
33
pub mod sig_ops;
44
pub use sig::{
55
Buf, Const, ConstBuf, Filter, GateToTrigRisingEdge, IsNegative, IsPositive,
6-
Sig, SigAbs, SigBoxed, SigConst, SigCtx, SigSampleIntoBufT, SigShared,
7-
SigT, Triggerable, Variable, Zip, Zip3, Zip4, sig_boxed,
8-
sig_option_first_some, sig_shared, variable,
6+
Sig, SigAbs, SigBoxed, SigCtx, SigSampleIntoBufT, SigShared, SigT,
7+
Triggerable, Variable, Zip, Zip3, Zip4, sig_boxed, sig_option_first_some,
8+
sig_shared, variable,
99
};
1010
pub mod cell;
1111
pub use cell::{Cell, CellF32, cell, cell_default, cell_f32};

core/src/sig.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -473,18 +473,6 @@ impl SigT for bool {
473473
}
474474
}
475475

476-
pub struct SigConst<T: Clone>(T);
477-
impl<T: Clone> SigT for SigConst<T> {
478-
type Item = T;
479-
480-
fn sample(&mut self, ctx: &SigCtx) -> impl Buf<Self::Item> {
481-
ConstBuf {
482-
value: self.0.clone(),
483-
count: ctx.num_samples,
484-
}
485-
}
486-
}
487-
488476
/// Wrapper type for the `SigT` trait to simplify some trait implementations for signals. For
489477
/// example this allows arithmetic traits like `std::ops::Add` to be implemented for signals.
490478
#[derive(Clone)]

0 commit comments

Comments
 (0)