remove single use function

This commit is contained in:
Quaternions 2025-01-15 00:36:15 -08:00
parent fea5bf4398
commit f9d4ca8370

View File

@ -181,16 +181,13 @@ impl MouseInterpolator{
}
}
}
fn has_output(&self)->bool{
self.output.len()!=0
}
pub fn buffered_instruction_with_timeout(&self,time_limit:SessionTime)->Option<TimedInstruction<StepInstruction,SessionTimeInner>>{
match self.get_mouse_timedout_at(time_limit){
Some(timeout)=>Some(TimedInstruction{
time:timeout,
instruction:StepInstruction::Timeout,
}),
None=>self.has_output().then_some(TimedInstruction{
None=>(self.output.len()!=0).then_some(TimedInstruction{
// this timestamp should not matter
time:time_limit,
instruction:StepInstruction::Pop,