From 23ad476ffb55b400b3fa430f92477dd65f39b616 Mon Sep 17 00:00:00 2001 From: Brooks Date: Mon, 25 Sep 2023 17:18:38 -0400 Subject: [PATCH] Removes unused `Versioned` trait (#33360) --- accounts-db/src/accounts_db.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index 9aba27f90..6974e214c 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -769,22 +769,6 @@ type ReclaimResult = (AccountSlots, SlotOffsets); type PubkeysRemovedFromAccountsIndex = HashSet; type ShrinkCandidates = HashSet; -trait Versioned { - fn version(&self) -> u64; -} - -impl Versioned for (u64, Hash) { - fn version(&self) -> u64 { - self.0 - } -} - -impl Versioned for (u64, AccountInfo) { - fn version(&self) -> u64 { - self.0 - } -} - // Some hints for applicability of additional sanity checks for the do_load fast-path; // Slower fallback code path will be taken if the fast path has failed over the retry // threshold, regardless of these hints. Also, load cannot fail not-deterministically