mirror of https://github.com/linkerd/linkerd2.git
Remove unused conversions for Destination. (#701)
These have not been used for a while; they are dead code. Signed-off-by: Brian Smith <brian@briansmith.org>
This commit is contained in:
parent
7bc4ffd0a4
commit
c31f4ba993
|
@ -56,21 +56,6 @@ pub enum Destination {
|
|||
External(SocketAddr),
|
||||
}
|
||||
|
||||
impl From<FullyQualifiedAuthority> for Destination {
|
||||
#[inline]
|
||||
fn from(authority: FullyQualifiedAuthority) -> Self {
|
||||
Destination::LocalSvc(authority)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<SocketAddr> for Destination {
|
||||
#[inline]
|
||||
fn from(addr: SocketAddr) -> Self {
|
||||
Destination::External(addr)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl<B> Recognize for Outbound<B>
|
||||
where
|
||||
B: tower_h2::Body + 'static,
|
||||
|
|
Loading…
Reference in New Issue