Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
unsafe_pruning flag removed (#12385)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkucharczyk authored Sep 30, 2022
1 parent c2026ca commit dbb72f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
11 changes: 0 additions & 11 deletions client/cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,17 +659,6 @@ pub trait CliConfiguration<DCV: DefaultConfigurationValues = ()>: Sized {
}
}

if self.import_params().map_or(false, |p| {
#[allow(deprecated)]
p.unsafe_pruning
}) {
// according to https://github.com/substrate/issues/8103;
warn!(
"WARNING: \"--unsafe-pruning\" CLI-flag is deprecated and has no effect. \
In future builds it will be removed, and providing this flag will lead to an error."
);
}

Ok(())
}
}
Expand Down
12 changes: 0 additions & 12 deletions client/cli/src/params/import_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,6 @@ pub struct ImportParams {
#[clap(flatten)]
pub database_params: DatabaseParams,

/// THIS IS A DEPRECATED CLI-ARGUMENT.
///
/// It has been preserved in order to not break the compatibility with the existing scripts.
/// Enabling this option will lead to a runtime warning.
/// In future this option will be removed completely, thus specifying it will lead to a start
/// up error.
///
/// Details: <https://github.com/paritytech/substrate/issues/8103>
#[clap(long)]
#[deprecated = "According to https://github.com/paritytech/substrate/issues/8103"]
pub unsafe_pruning: bool,

/// Method for executing Wasm runtime code.
#[clap(
long = "wasm-execution",
Expand Down

0 comments on commit dbb72f3

Please sign in to comment.