diff --git a/src/scheduler.rs b/src/scheduler.rs index 5a1488e..f665e9d 100644 --- a/src/scheduler.rs +++ b/src/scheduler.rs @@ -2,14 +2,6 @@ pub use tick::Tick; mod tick{ #[derive(Clone,Copy,Default,Hash,PartialEq,Eq,PartialOrd,Ord)] pub struct Tick(u64); - impl Tick{ - pub const fn new(value:u64)->Self{ - Self(value) - } - pub const fn get(&self)->u64{ - self.0 - } - } impl std::ops::Add for Tick{ type Output=Self; fn add(self,rhs:u64)->Self::Output{ @@ -40,9 +32,6 @@ pub struct Scheduler{ } impl Scheduler{ - pub const fn tick(&self)->Tick{ - self.tick - } pub fn has_scheduled_threads(&self)->bool{ !self.schedule.is_empty() }