Skip to content
Snippets Groups Projects
Unverified Commit ed021f1a authored by bgallois's avatar bgallois
Browse files

remove unused code

parent 98dfa0a4
No related branches found
No related tags found
No related merge requests found
......@@ -102,27 +102,6 @@ pub enum RuntimeType {
GTest,
}
/*/// Can be called for a `Configuration` to check if it is a configuration for
/// a particular runtime type.
pub trait IdentifyRuntimeType {
/// Returns the runtime type
fn runtime_type(&self) -> RuntimeType;
}*/
/*impl IdentifyRuntimeType for Box<dyn sc_chain_spec::ChainSpec> {
fn runtime_type(&self) -> RuntimeType {
if self.id().starts_with("g1") {
RuntimeType::G1
} else if self.id().starts_with("dev") || self.id().starts_with("gdev") {
RuntimeType::GDev
} else if self.id().starts_with("gtest") {
RuntimeType::GTest
} else {
panic!("unknown runtime")
}
}
}*/
/// Builds a new object suitable for chain operations.
#[allow(clippy::type_complexity)]
pub fn new_chain_ops(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment