Remove some unused
This commit is contained in:
@@ -22,12 +22,6 @@ pub trait Bins {
|
||||
fn bin_count(&self) -> u32;
|
||||
}
|
||||
|
||||
// TODO remove:
|
||||
pub trait Collected {
|
||||
fn new(bin_count_exp: u32) -> Self;
|
||||
fn timed_out(&mut self, k: bool);
|
||||
}
|
||||
|
||||
pub trait Collector {
|
||||
type Input: Collectable;
|
||||
type Output: Serialize;
|
||||
@@ -42,24 +36,6 @@ pub trait Collectable {
|
||||
fn new_collector(bin_count_exp: u32) -> Self::Collector;
|
||||
}
|
||||
|
||||
// TODO can be removed?
|
||||
pub trait Collectable2: Any {
|
||||
fn as_any_ref(&self) -> &dyn Any;
|
||||
fn append(&mut self, src: &dyn Any);
|
||||
}
|
||||
|
||||
// TODO remove
|
||||
pub trait CollectionSpec2 {
|
||||
// TODO Can I use here associated types and return concrete types?
|
||||
// Probably not object safe.
|
||||
fn empty(&self) -> Box<dyn Collectable2>;
|
||||
}
|
||||
|
||||
// TODO rmove
|
||||
pub trait CollectionSpecMaker2 {
|
||||
fn spec(bin_count_exp: u32) -> Box<dyn CollectionSpec2>;
|
||||
}
|
||||
|
||||
pub trait ToJsonBytes {
|
||||
fn to_json_bytes(&self) -> Result<Vec<u8>, Error>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user