Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Oct 2, 2024
1 parent c0a4032 commit 15be9c8
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions substrate/frame/assets/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,29 +139,6 @@ fn assert_event<T: Config<I>, I: 'static>(generic_event: <T as Config<I>>::Runti
frame_system::Pallet::<T>::assert_has_event(generic_event.into());
}

// fn generate_merkle_trie<T: Config<I>, I: 'static>(items: u32) -> (DistributionHashOf<T, I>,
// DistributionProofOf<T, I>) { use codec::Encode;
// let flat_distribution = Vec::<Vec<u8>>::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::<<T as frame_system::Config>::Hashing, _>(
// flat_distribution.clone(),
// );

// let proof = binary_merkle_tree::merkle_proof::<
// <T as frame_system::Config>::Hashing,
// _,
// _,
// >(flat_distribution.clone(), items);

// return (root, proof)
// }

benchmarks_instance_pallet! {
create {
let asset_id = default_asset_id::<T, I>();
Expand Down

0 comments on commit 15be9c8

Please sign in to comment.