Skip to content

Commit

Permalink
refactor(dcutr): remove dead code
Browse files Browse the repository at this point in the history
The deleted event variant is never emitted and can thus be removed.

Pull-Request: #4722.
  • Loading branch information
thomaseizinger authored Oct 25, 2023
1 parent 85e6105 commit c3740a1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions protocols/dcutr/src/behaviour_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,15 +300,6 @@ impl NetworkBehaviour for Behaviour {
},
)]);
}
Either::Left(handler::relayed::Event::InboundNegotiationFailed { error }) => {
self.queued_events.push_back(ToSwarm::GenerateEvent(
Event::DirectConnectionUpgradeFailed {
remote_peer_id: event_source,
connection_id,
error: Error::Handler(error),
},
));
}
Either::Left(handler::relayed::Event::InboundConnectNegotiated(remote_addrs)) => {
let opts = DialOpts::peer_id(event_source)
.addresses(remote_addrs)
Expand Down
3 changes: 0 additions & 3 deletions protocols/dcutr/src/handler/relayed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ pub enum Event {
InboundConnectRequest {
remote_addr: Multiaddr,
},
InboundNegotiationFailed {
error: StreamUpgradeError<void::Void>,
},
InboundConnectNegotiated(Vec<Multiaddr>),
OutboundNegotiationFailed {
error: StreamUpgradeError<void::Void>,
Expand Down

0 comments on commit c3740a1

Please sign in to comment.