From 75457e507d2e889e9015b5548ff7fca6f92db25e Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 21 Oct 2024 19:13:57 -0700 Subject: [PATCH] remove unused code --- src/scheduler.rs | 11 ----------- 1 file changed, 11 deletions(-) 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() }