From 8361fabb479650f736f71ba8f253ed49f38ee4ff Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 23 May 2022 16:56:59 +0200 Subject: [PATCH] core/src/muxing: Remove deprecated function (#2665) --- core/CHANGELOG.md | 2 ++ core/src/muxing.rs | 11 ----------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 3a2cffea52a..09aaef501bc 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -1,8 +1,10 @@ # 0.33.0 [unreleased] - Have methods on `Transport` take `&mut self` instead of `self`. See [PR 2529]. +- Remove deprecated function `StreamMuxer::is_remote_acknowledged`. See [PR 2665]. [PR 2529]: https://github.com/libp2p/rust-libp2p/pull/2529 +[PR 2665]: https://github.com/libp2p/rust-libp2p/pull/2665 # 0.32.1 diff --git a/core/src/muxing.rs b/core/src/muxing.rs index 12beb51d9dd..7285cef7c5a 100644 --- a/core/src/muxing.rs +++ b/core/src/muxing.rs @@ -203,17 +203,6 @@ pub trait StreamMuxer { /// Destroys a substream. fn destroy_substream(&self, s: Self::Substream); - /// Returns `true` if the remote has shown any sign of activity after the muxer has been open. - /// - /// For optimisation purposes, the connection handshake of libp2p can be very optimistic and is - /// allowed to assume that the handshake has succeeded when it didn't in fact succeed. This - /// method can be called in order to determine whether the remote has accepted our handshake or - /// has potentially not received it yet. - #[deprecated(note = "This method is unused and will be removed in the future")] - fn is_remote_acknowledged(&self) -> bool { - true - } - /// Closes this `StreamMuxer`. /// /// After this has returned `Poll::Ready(Ok(()))`, the muxer has become useless. All