remove single use function
This commit is contained in:
parent
fea5bf4398
commit
f9d4ca8370
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user