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>>{
|
pub fn buffered_instruction_with_timeout(&self,time_limit:SessionTime)->Option<TimedInstruction<StepInstruction,SessionTimeInner>>{
|
||||||
match self.get_mouse_timedout_at(time_limit){
|
match self.get_mouse_timedout_at(time_limit){
|
||||||
Some(timeout)=>Some(TimedInstruction{
|
Some(timeout)=>Some(TimedInstruction{
|
||||||
time:timeout,
|
time:timeout,
|
||||||
instruction:StepInstruction::Timeout,
|
instruction:StepInstruction::Timeout,
|
||||||
}),
|
}),
|
||||||
None=>self.has_output().then_some(TimedInstruction{
|
None=>(self.output.len()!=0).then_some(TimedInstruction{
|
||||||
// this timestamp should not matter
|
// this timestamp should not matter
|
||||||
time:time_limit,
|
time:time_limit,
|
||||||
instruction:StepInstruction::Pop,
|
instruction:StepInstruction::Pop,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user