Skip to content

Commit

Permalink
also remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekleog-NEAR committed Nov 17, 2023
1 parent 187d6f9 commit fa05d74
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/store/src/trie/prefetching_trie_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,14 @@ impl PrefetchApi {
}
}

fn prefetch_state_matches(expected: PrefetchSlot, actual: &PrefetchSlot) -> bool {
match (expected, actual) {
(PrefetchSlot::PendingPrefetch, PrefetchSlot::PendingPrefetch)
| (PrefetchSlot::PendingFetch, PrefetchSlot::PendingFetch)
| (PrefetchSlot::Done(_), PrefetchSlot::Done(_)) => true,
_ => false,
}
}
// fn prefetch_state_matches(expected: PrefetchSlot, actual: &PrefetchSlot) -> bool {
// match (expected, actual) {
// (PrefetchSlot::PendingPrefetch, PrefetchSlot::PendingPrefetch)
// | (PrefetchSlot::PendingFetch, PrefetchSlot::PendingFetch)
// | (PrefetchSlot::Done(_), PrefetchSlot::Done(_)) => true,
// _ => false,
// }
// }

/// Guard that owns the spawned prefetching IO threads.
#[must_use = "When dropping this handle, the IO threads will be aborted immediately."]
Expand Down

0 comments on commit fa05d74

Please sign in to comment.