diff --git a/src/modules/message_handler.rs b/src/modules/message_handler.rs index 90d6709..ce45482 100644 --- a/src/modules/message_handler.rs +++ b/src/modules/message_handler.rs @@ -2,7 +2,6 @@ use super::stream_states::{state_update::StateUpdate, stream_states_class::Strea pub enum StateMessage { StateUpdate(StateUpdate), - GetStates, CloseListener, } diff --git a/src/tests/message_handler_tests.rs b/src/tests/message_handler_tests.rs index 5c16d1c..b8a3f49 100644 --- a/src/tests/message_handler_tests.rs +++ b/src/tests/message_handler_tests.rs @@ -19,7 +19,6 @@ fn message_hander_can_handle_basic_message() { for message in rx { match message { StateMessage::StateUpdate(update) => {handler.handle_update(update)}, - StateMessage::GetStates => {panic!("Why is getstates being called in this test?");}, StateMessage::CloseListener => {break;}, }; } @@ -46,7 +45,6 @@ fn message_handler_can_handle_multiple_messages() { for message in rx { match message { StateMessage::StateUpdate(update) => {handler.handle_update(update)}, - StateMessage::GetStates => {panic!("Why is getstates being called in this test?");}, StateMessage::CloseListener => {break;}, }; }