remove unused code
This commit is contained in:
parent
6a8f2a02b0
commit
75457e507d
@ -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<u64> 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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user