From fa510deac9f7746642aab6312406842de08eecde Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 26 Dec 2022 16:37:14 -0500 Subject: [PATCH] cleanup unused fsm --- veilid-tools/src/callback_state_machine.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/veilid-tools/src/callback_state_machine.rs b/veilid-tools/src/callback_state_machine.rs index 80085d37..238ac43f 100644 --- a/veilid-tools/src/callback_state_machine.rs +++ b/veilid-tools/src/callback_state_machine.rs @@ -54,14 +54,14 @@ where self.inner.lock().callback = Some(callback); } - // pub fn clear_state_change_callback(&self) { - // self.inner.lock().callback = None; - // } + pub fn clear_state_change_callback(&self) { + self.inner.lock().callback = None; + } - // pub fn state_eventual_instance(&self) -> (T::State, EventualValueCloneFuture) { - // let inner = self.inner.lock(); - // (inner.state, inner.eventual.instance()) - // } + pub fn state_eventual_instance(&self) -> (T::State, EventualValueCloneFuture) { + let inner = self.inner.lock(); + (inner.state, inner.eventual.instance()) + } pub async fn consume(&self, input: &T::Input) -> Result, ()> { let current_state = self.inner.lock().state;