From 035211d707d0a74a2a768fd658160721f09d5b44 Mon Sep 17 00:00:00 2001 From: Przemek Rzad Date: Mon, 5 Aug 2024 13:48:58 +0200 Subject: [PATCH] Remove unused feature gated code from the minimal template (#5237) - Progresses https://github.com/paritytech/polkadot-sdk/issues/5226 There is no actual `try-runtime` or `runtime-benchmarks` functionality in the minimal template at the moment. --- templates/minimal/node/src/command.rs | 3 --- templates/minimal/node/src/service.rs | 5 ----- 2 files changed, 8 deletions(-) diff --git a/templates/minimal/node/src/command.rs b/templates/minimal/node/src/command.rs index c17f9bc55927..504be1ccc36e 100644 --- a/templates/minimal/node/src/command.rs +++ b/templates/minimal/node/src/command.rs @@ -23,9 +23,6 @@ use crate::{ use sc_cli::SubstrateCli; use sc_service::PartialComponents; -#[cfg(feature = "try-runtime")] -use try_runtime_cli::block_building_info::timestamp_with_aura_info; - impl SubstrateCli for Cli { fn impl_name() -> String { "Substrate Node".into() diff --git a/templates/minimal/node/src/service.rs b/templates/minimal/node/src/service.rs index e298d3dd6dc1..44b374fcc0a4 100644 --- a/templates/minimal/node/src/service.rs +++ b/templates/minimal/node/src/service.rs @@ -27,11 +27,6 @@ use std::sync::Arc; use crate::cli::Consensus; -#[cfg(feature = "runtime-benchmarks")] -type HostFunctions = - (sp_io::SubstrateHostFunctions, frame_benchmarking::benchmarking::HostFunctions); - -#[cfg(not(feature = "runtime-benchmarks"))] type HostFunctions = sp_io::SubstrateHostFunctions; #[docify::export]