From e8e1e20ebdc4fe7a4552aa440d35c4b987348ec5 Mon Sep 17 00:00:00 2001 From: Alex Kuzmin Date: Thu, 8 Feb 2024 13:10:07 +0800 Subject: [PATCH] Remove unused code (close #260) --- zk_prover/src/merkle_sum_tree/utils/csv_parser.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/zk_prover/src/merkle_sum_tree/utils/csv_parser.rs b/zk_prover/src/merkle_sum_tree/utils/csv_parser.rs index 5df9c44..472a192 100644 --- a/zk_prover/src/merkle_sum_tree/utils/csv_parser.rs +++ b/zk_prover/src/merkle_sum_tree/utils/csv_parser.rs @@ -30,7 +30,6 @@ pub fn parse_csv_to_entries, const N_CURRENCIES: usize, const N_B } let mut entries = Vec::new(); - let mut balances_acc: Vec = vec![BigUint::from(0_usize); N_CURRENCIES]; for result in rdr.deserialize() { let record: HashMap = result?; @@ -51,12 +50,6 @@ pub fn parse_csv_to_entries, const N_CURRENCIES: usize, const N_B balances_big_int.push(balance); } - balances_acc = balances_acc - .iter() - .zip(balances_big_int.iter()) - .map(|(x, y)| x + y) - .collect(); - let entry = Entry::new(username, balances_big_int.try_into().unwrap())?; entries.push(entry); }