Skip to content

Commit

Permalink
Remove unused code (close #260)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxkzmn committed Feb 8, 2024
1 parent 95d63fe commit e8e1e20
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions zk_prover/src/merkle_sum_tree/utils/csv_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ pub fn parse_csv_to_entries<P: AsRef<Path>, const N_CURRENCIES: usize, const N_B
}

let mut entries = Vec::new();
let mut balances_acc: Vec<BigUint> = vec![BigUint::from(0_usize); N_CURRENCIES];

for result in rdr.deserialize() {
let record: HashMap<String, String> = result?;
Expand All @@ -51,12 +50,6 @@ pub fn parse_csv_to_entries<P: AsRef<Path>, 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);
}
Expand Down

0 comments on commit e8e1e20

Please sign in to comment.