Skip to content

Commit

Permalink
Remove unused feature gated code from the minimal template (#5237)
Browse files Browse the repository at this point in the history
- Progresses #5226

There is no actual `try-runtime` or `runtime-benchmarks` functionality
in the minimal template at the moment.
  • Loading branch information
rzadp authored Aug 5, 2024
1 parent 0cc3e17 commit 035211d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions templates/minimal/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
5 changes: 0 additions & 5 deletions templates/minimal/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 035211d

Please sign in to comment.