From 5f3589915d3ca1b13133a2c64d64e95af8bb8d5f Mon Sep 17 00:00:00 2001 From: Fina Wilke Date: Sun, 25 Feb 2024 19:16:27 +0100 Subject: [PATCH] protocol: Remove unused send method --- src/core/protocol.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/protocol.rs b/src/core/protocol.rs index 38c99b21..0c2ca3cb 100644 --- a/src/core/protocol.rs +++ b/src/core/protocol.rs @@ -7,7 +7,7 @@ use mockall::automock; use crate::{ core::{ key::{derive_phase_key, derive_verifier, encrypt_data}, - Phase, PhaseProvider, + PhaseProvider, }, rendezvous::RendezvousServer, AppConfig, AppID, Key, Mood, WormholeError, WormholeKey, @@ -70,10 +70,6 @@ impl WormholeProtocolDefault { #[async_trait] impl WormholeProtocol for WormholeProtocolDefault { /** Send an encrypted message to peer */ - async fn send(&mut self, plaintext: Vec) -> Result<(), WormholeError> { - self.send_with_phase(plaintext, Phase::numeric).await - } - async fn send_with_phase( &mut self, plaintext: Vec, @@ -140,7 +136,6 @@ impl WormholeProtocol for WormholeProtocolDefault { #[cfg_attr(test, automock)] #[async_trait] pub trait WormholeProtocol: Debug + Send + Sync { - async fn send(&mut self, plaintext: Vec) -> Result<(), WormholeError>; async fn send_with_phase( &mut self, plaintext: Vec,