remove unused code (#1920)

This commit is contained in:
thiolliere
2019-03-04 17:10:31 +01:00
committed by GitHub
parent c485eb8fdc
commit b599556e21
5 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ use log::info;
use lazy_static::lazy_static;
use futures::Future;
use substrate_telemetry::{telemetry, TelemetryEndpoints};
use substrate_telemetry::TelemetryEndpoints;
const MAX_NODE_NAME_LENGTH: usize = 32;
+1 -1
View File
@@ -61,7 +61,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: create_runtime_str!("substrate-node"),
authoring_version: 10,
spec_version: 31,
impl_version: 32,
impl_version: 33,
apis: RUNTIME_API_VERSIONS,
};
@@ -226,11 +226,6 @@ fn decl_store_extra_genesis(
let typ = type_infos.typ;
if let Some(builder) = opt_build {
is_trait_needed = true;
let error_message = format!(
"Genesis parameters encoding of {} does not match the expected type ({:?}).",
name,
type_infos.value_type,
);
builders.extend(match type_infos.kind {
DeclStorageTypeInfosKind::Simple => {
quote!{{
+3 -1
View File
@@ -193,7 +193,9 @@ impl From<RawLog<substrate_primitives::H256>> for primitives::testing::DigestIte
}
}
// Create a Hash with 69 for each byte
// Create a Hash with 69 for each byte,
// only used to build genesis config
#[cfg(feature = "std")]
fn hash69<T: AsMut<[u8]> + Default>() -> T {
let mut h = T::default();
h.as_mut().iter_mut().for_each(|byte| *byte = 69);