Skip to content

Commit

Permalink
dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jstuczyn committed Oct 30, 2023
1 parent 194fa40 commit c089067
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion mixnode/src/commands/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use crate::commands::{try_load_current_config, validate_bech32_address_or_exit};
use crate::node::helpers::load_identity_keys;
use crate::node::MixNode;
use anyhow::{bail, Result};
use clap::{ArgGroup, Args};
use log::error;
Expand Down
1 change: 1 addition & 0 deletions mixnode/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub enum MixnodeError {
err: io::Error,
},

#[allow(dead_code)]
#[error("failed to load {key} public key from '{}': {err}", .path.display())]
PublicKeyLoadFailure {
key: String,
Expand Down
1 change: 1 addition & 0 deletions mixnode/src/node/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub(crate) fn load_keypair<T: PemStorableKeyPair>(
})
}

#[allow(unused)]
pub(crate) fn load_public_key<T, P, S>(path: P, name: S) -> Result<T, MixnodeError>
where
T: PemStorableKey,
Expand Down
2 changes: 0 additions & 2 deletions mixnode/src/node/http/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use crate::config::Config;
use crate::error::MixnodeError;
use crate::node::http::legacy::state::MixnodeAppState;
use crate::node::http::legacy::verloc::VerlocState;
use crate::node::node_description::NodeDescription;
use crate::node::node_statistics::SharedNodeStats;
use axum::response::IntoResponse;
use log::info;
use nym_bin_common::bin_info_owned;
use nym_crypto::asymmetric::{encryption, identity};
Expand Down

0 comments on commit c089067

Please sign in to comment.