From d41319a8370e5a044ff32ecce035d513c2f2121a Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 9 Jul 2024 18:14:32 +0200 Subject: [PATCH] core: remove hash for Table Signed-off-by: Pere Diaz Bou --- core/schema.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/schema.rs b/core/schema.rs index 302b8e64a..67705c615 100644 --- a/core/schema.rs +++ b/core/schema.rs @@ -76,17 +76,6 @@ impl PartialEq for Table { } } -impl Eq for Table {} - -impl std::hash::Hash for Table { - fn hash(&self, state: &mut H) { - match self { - Table::BTree(table) => std::ptr::hash(table.as_ref(), state), - Table::Pseudo(table) => std::ptr::hash(table.as_ref(), state), - } - } -} - pub struct BTreeTable { pub root_page: usize, pub name: String,