From 519344e9c458ed41fce9fd472bc4ba5b82ff5b02 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 9 Dec 2021 00:41:13 -0700 Subject: [PATCH] remove unknown trade state --- src/packet/messages.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/packet/messages.rs b/src/packet/messages.rs index ccdd61a..3ae4ff6 100644 --- a/src/packet/messages.rs +++ b/src/packet/messages.rs @@ -700,7 +700,6 @@ pub enum TradeRequestCommand { RemoveItem(u32, u32), Confirm, FinalConfirm, - Unknown, } impl PSOPacketData for TradeRequestCommand { @@ -738,9 +737,6 @@ impl PSOPacketData for TradeRequestCommand { 4 => { Ok(TradeRequestCommand::FinalConfirm) }, - 6 => { - Ok(TradeRequestCommand::Unknown) - }, _ => { Err(PacketParseError::InvalidValue) }, @@ -788,12 +784,6 @@ impl PSOPacketData for TradeRequestCommand { .chain(std::iter::repeat(0).take(11)) .collect() }, - TradeRequestCommand::Unknown => { - vec![6u8] - .into_iter() - .chain(std::iter::repeat(0).take(11)) - .collect() - }, } } }