From fa05d749bf644d462e6d9da13c4c65541a65ae17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Gaspard?= Date: Fri, 17 Nov 2023 15:26:38 +0000 Subject: [PATCH] also remove dead code --- core/store/src/trie/prefetching_trie_storage.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/store/src/trie/prefetching_trie_storage.rs b/core/store/src/trie/prefetching_trie_storage.rs index 940bd368546..43b8c558ada 100644 --- a/core/store/src/trie/prefetching_trie_storage.rs +++ b/core/store/src/trie/prefetching_trie_storage.rs @@ -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."]