Skip to content

Commit dfb4aa1

Browse files
rzadpdharjeezy
authored andcommitted
Remove unused feature gated code from the minimal template (paritytech#5237)
- Progresses paritytech#5226 There is no actual `try-runtime` or `runtime-benchmarks` functionality in the minimal template at the moment.
1 parent 15a25a6 commit dfb4aa1

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

templates/minimal/node/src/command.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ use crate::{
2323
use sc_cli::SubstrateCli;
2424
use sc_service::PartialComponents;
2525

26-
#[cfg(feature = "try-runtime")]
27-
use try_runtime_cli::block_building_info::timestamp_with_aura_info;
28-
2926
impl SubstrateCli for Cli {
3027
fn impl_name() -> String {
3128
"Substrate Node".into()

templates/minimal/node/src/service.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ use std::sync::Arc;
2727

2828
use crate::cli::Consensus;
2929

30-
#[cfg(feature = "runtime-benchmarks")]
31-
type HostFunctions =
32-
(sp_io::SubstrateHostFunctions, frame_benchmarking::benchmarking::HostFunctions);
33-
34-
#[cfg(not(feature = "runtime-benchmarks"))]
3530
type HostFunctions = sp_io::SubstrateHostFunctions;
3631

3732
#[docify::export]

0 commit comments

Comments
 (0)