Skip to content

Commit

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

- Migrate to `{In,Out}boundConnectionUpgrade` traits.
See [PR 4695](https://github.com/libp2p/rust-libp2p/pull/4695).
- Remove deprecated type-aliases and make `Config::local_public_key` private.
See [PR 4734](https://github.com/libp2p/rust-libp2p/pull/4734).

## 0.40.1

Expand Down
10 changes: 1 addition & 9 deletions transports/plaintext/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,13 @@ mod proto {
pub(crate) use self::structs::Exchange;
}

#[deprecated(note = "Has been renamed to `Config`.")]
pub type PlainText2Config = Config;

#[deprecated(note = "Has been renamed to `Output`.")]
pub type PlainTextOutput<T> = Output<T>;

/// [`Config`] is an insecure connection handshake for testing purposes only.
#[derive(Clone)]
pub struct Config {
#[deprecated(note = "Will be made private in the future, please use `Config::new` instead!")]
pub local_public_key: identity::PublicKey,
local_public_key: identity::PublicKey,
}

impl Config {
#[allow(deprecated)]
pub fn new(identity: &identity::Keypair) -> Self {
Self {
local_public_key: identity.public(),
Expand Down

0 comments on commit 87578f9

Please sign in to comment.