From f9d4ca837083552582e3b0cca733c51dbfd8c4aa Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 15 Jan 2025 00:36:15 -0800 Subject: [PATCH] remove single use function --- strafe-client/src/mouse_interpolator.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/strafe-client/src/mouse_interpolator.rs b/strafe-client/src/mouse_interpolator.rs index 0c9d6c8..2e57fe7 100644 --- a/strafe-client/src/mouse_interpolator.rs +++ b/strafe-client/src/mouse_interpolator.rs @@ -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>{ 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,