@@ -88,10 +88,6 @@ pub mod async_std {
8888 }
8989}
9090
91- #[ cfg( feature = "async-std" ) ]
92- #[ deprecated( note = "Use `async_std::Transport` instead." ) ]
93- pub type DnsConfig < T > = async_std:: Transport < T > ;
94-
9591#[ cfg( feature = "tokio" ) ]
9692pub mod tokio {
9793 use parking_lot:: Mutex ;
@@ -124,10 +120,6 @@ pub mod tokio {
124120 }
125121}
126122
127- #[ cfg( feature = "tokio" ) ]
128- #[ deprecated( note = "Use `tokio::Transport` instead." ) ]
129- pub type TokioDnsConfig < T > = tokio:: Transport < T > ;
130-
131123use async_trait:: async_trait;
132124use futures:: { future:: BoxFuture , prelude:: * } ;
133125use libp2p_core:: {
@@ -184,9 +176,6 @@ pub struct Transport<T, R> {
184176 resolver : R ,
185177}
186178
187- #[ deprecated( note = "Use `async_std::Transport` or `tokio::Transport` instead." ) ]
188- pub type GenDnsConfig < T , R > = Transport < T , R > ;
189-
190179impl < T , R > libp2p_core:: Transport for Transport < T , R >
191180where
192181 T : libp2p_core:: Transport + Send + Unpin + ' static ,
@@ -414,9 +403,6 @@ pub enum Error<TErr> {
414403 TooManyLookups ,
415404}
416405
417- #[ deprecated( note = "Use `Error` instead." ) ]
418- pub type DnsErr < TErr > = Error < TErr > ;
419-
420406impl < TErr > fmt:: Display for Error < TErr >
421407where
422408 TErr : fmt:: Display ,
0 commit comments