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
@@ -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);