From f3e237b11da78c5b0dcccd040f618f6d2c15fc54 Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Wed, 22 Dec 2021 18:32:07 -0800 Subject: [PATCH] removed unused enum --- src/modules/message_handler.rs | 1 - src/tests/message_handler_tests.rs | 2 -- 2 files changed, 3 deletions(-) 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;}, }; }