From 15be9c8a7ea13965c52366852229f623e52927bf Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Wed, 2 Oct 2024 01:30:31 -0400 Subject: [PATCH] remove dead code --- substrate/frame/assets/src/benchmarking.rs | 23 ---------------------- 1 file changed, 23 deletions(-) diff --git a/substrate/frame/assets/src/benchmarking.rs b/substrate/frame/assets/src/benchmarking.rs index e75da48737c3..df4c97af66d6 100644 --- a/substrate/frame/assets/src/benchmarking.rs +++ b/substrate/frame/assets/src/benchmarking.rs @@ -139,29 +139,6 @@ fn assert_event, I: 'static>(generic_event: >::Runti frame_system::Pallet::::assert_has_event(generic_event.into()); } -// fn generate_merkle_trie, I: 'static>(items: u32) -> (DistributionHashOf, -// DistributionProofOf) { use codec::Encode; -// let flat_distribution = Vec::>::with_capacity(items as usize); -// for i in 0..items { -// let account: T::AccountId = account("target", i, SEED); -// let balance: T::Balance = i.into(); - -// flat_distribution.push((account, balance).encode()); -// } - -// let root = binary_merkle_tree::merkle_root::<::Hashing, _>( -// flat_distribution.clone(), -// ); - -// let proof = binary_merkle_tree::merkle_proof::< -// ::Hashing, -// _, -// _, -// >(flat_distribution.clone(), items); - -// return (root, proof) -// } - benchmarks_instance_pallet! { create { let asset_id = default_asset_id::();