Remove some unused

This commit is contained in:
Dominik Werder
2021-06-09 20:09:05 +02:00
parent 28b4bb3e04
commit 27bc094b36
2 changed files with 3 additions and 163 deletions
-24
View File
@@ -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>;
}