Skip to content

Commit

Permalink
remove redundant loop
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Aug 20, 2024
1 parent 37e54ee commit d7d7f95
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions datafusion/common/src/hash_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,6 @@ pub fn create_row_hashes<'a>(
random_state: &RandomState,
hashes_buffer: &'a mut Vec<u64>,
) -> Result<&'a mut Vec<u64>> {
for hash in hashes_buffer.iter_mut() {
*hash = 0
}
for (i, hash) in hashes_buffer.iter_mut().enumerate() {
*hash = random_state.hash_one(&rows[i]);
}
Expand Down

0 comments on commit d7d7f95

Please sign in to comment.