Skip to content

Commit e89a11b

Browse files
chore(core): remove deprecated symbols
Pull-Request: #4736.
1 parent 87578f9 commit e89a11b

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
- Remove blanket-impl of `{In,Out}boundUpgrade` for `{In,Out}boundConnectionUpgrade`.
44
See [PR 4695](https://github.com/libp2p/rust-libp2p/pull/4695).
5+
- Remove deprecated functions from `ListenerId`.
6+
See [PR 4736](https://github.com/libp2p/rust-libp2p/pull/4736).
57

68
## 0.40.1
79

core/src/transport.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -250,23 +250,10 @@ pub trait Transport {
250250
pub struct ListenerId(usize);
251251

252252
impl ListenerId {
253-
#[deprecated(note = "Renamed to ` ListenerId::next`.")]
254-
#[allow(clippy::new_without_default)]
255-
/// Creates a new `ListenerId`.
256-
pub fn new() -> Self {
257-
ListenerId::next()
258-
}
259-
260253
/// Creates a new `ListenerId`.
261254
pub fn next() -> Self {
262255
ListenerId(NEXT_LISTENER_ID.fetch_add(1, Ordering::SeqCst))
263256
}
264-
265-
#[deprecated(note = "Use ` ListenerId::next` instead.")]
266-
#[allow(clippy::should_implement_trait)]
267-
pub fn default() -> Self {
268-
Self::next()
269-
}
270257
}
271258

272259
/// Event produced by [`Transport`]s.

0 commit comments

Comments
 (0)