Skip to content

Commit

Permalink
chore(core): remove deprecated symbols
Browse files Browse the repository at this point in the history
Pull-Request: #4736.
  • Loading branch information
thomaseizinger authored Oct 26, 2023
1 parent 87578f9 commit e89a11b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 2 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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

## 0.40.1

Expand Down
13 changes: 0 additions & 13 deletions core/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,23 +250,10 @@ pub trait Transport {
pub struct ListenerId(usize);

impl ListenerId {
#[deprecated(note = "Renamed to ` ListenerId::next`.")]
#[allow(clippy::new_without_default)]
/// Creates a new `ListenerId`.
pub fn new() -> Self {
ListenerId::next()
}

/// Creates a new `ListenerId`.
pub fn next() -> Self {
ListenerId(NEXT_LISTENER_ID.fetch_add(1, Ordering::SeqCst))
}

#[deprecated(note = "Use ` ListenerId::next` instead.")]
#[allow(clippy::should_implement_trait)]
pub fn default() -> Self {
Self::next()
}
}

/// Event produced by [`Transport`]s.
Expand Down

0 comments on commit e89a11b

Please sign in to comment.