From c31f4ba993316f716fd5996cd9db2d131a17ced9 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 6 Apr 2018 07:35:35 -1000 Subject: [PATCH] Remove unused conversions for Destination. (#701) These have not been used for a while; they are dead code. Signed-off-by: Brian Smith --- proxy/src/outbound.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/proxy/src/outbound.rs b/proxy/src/outbound.rs index 244f6e55d..b41e90d84 100644 --- a/proxy/src/outbound.rs +++ b/proxy/src/outbound.rs @@ -56,21 +56,6 @@ pub enum Destination { External(SocketAddr), } -impl From for Destination { - #[inline] - fn from(authority: FullyQualifiedAuthority) -> Self { - Destination::LocalSvc(authority) - } -} - -impl From for Destination { - #[inline] - fn from(addr: SocketAddr) -> Self { - Destination::External(addr) - } -} - - impl Recognize for Outbound where B: tower_h2::Body + 'static,