From 6a17c47bd43f07ae622e0e604e2ffa548bd1f346 Mon Sep 17 00:00:00 2001 From: Joe Hellerstein Date: Wed, 25 Sep 2024 23:11:04 -0700 Subject: [PATCH] cleanup --- lattices/src/ght_lattice.rs | 86 ------------------------------------- 1 file changed, 86 deletions(-) diff --git a/lattices/src/ght_lattice.rs b/lattices/src/ght_lattice.rs index eeb49b95816..42cf4efae6e 100644 --- a/lattices/src/ght_lattice.rs +++ b/lattices/src/ght_lattice.rs @@ -13,17 +13,6 @@ use crate::{IsBot, IsTop, LatticeBimorphism, LatticeOrd, Merge}; /// Lattice traits for GHT ////////////////////////// -/// Merge -// impl Merge> for GHT -// where -// KeyType: VariadicExt, -// Inner: GeneralizedHashTrieNode + Merge, -// { -// fn merge(&mut self, other: GHT) -> bool { -// self.trie.merge(other.trie) -// } -// } - impl Merge> for GhtInner where Node: GeneralizedHashTrieNode + Merge, @@ -61,17 +50,6 @@ where } } -/// PartialEq -// impl PartialEq> for GHT -// where -// KeyType: VariadicExt, -// Inner: GeneralizedHashTrieNode + Merge + PartialEq, -// { -// fn eq(&self, other: &GHT) -> bool { -// self.trie.eq(&other.trie) -// } -// } - impl PartialEq> for GhtInner where Head: Hash + Eq + 'static + Clone, @@ -102,17 +80,6 @@ where } } -// PartialOrd -// impl PartialOrd> for GHT -// where -// KeyType: VariadicExt, // + AsRefVariadicPartialEq -// Inner: GeneralizedHashTrieNode + Merge + PartialOrd, -// { -// fn partial_cmp(&self, other: &GHT) -> Option { -// self.trie.partial_cmp(&other.trie) -// } -// } - impl PartialOrd> for GhtInner where Head: Hash + Eq + 'static + Clone, @@ -208,15 +175,6 @@ where } } -// LatticeOrd -// impl LatticeOrd> for GHT -// where -// KeyType: VariadicExt, // + AsRefVariadicPartialEq -// Inner: GeneralizedHashTrieNode, -// Self: PartialOrd, -// { -// } - impl LatticeOrd> for GhtInner where Self: PartialOrd>, @@ -233,17 +191,6 @@ where { } -// IsBot -// impl IsBot for GHT -// where -// KeyType: VariadicExt, // + AsRefVariadicPartialEq -// Inner: GeneralizedHashTrieNode + IsBot, -// { -// fn is_bot(&self) -> bool { -// self.trie.is_bot() -// } -// } - impl IsBot for GhtInner where Head: Clone, @@ -265,17 +212,6 @@ where } } -// IsTop -// impl IsTop for GHT -// where -// KeyType: VariadicExt, // + AsRefVariadicPartialEq -// Inner: GeneralizedHashTrieNode + IsTop, -// { -// fn is_top(&self) -> bool { -// self.trie.is_top() -// } -// } - impl IsTop for GhtInner where Head: Clone, @@ -394,28 +330,6 @@ impl GhtBimorphism { } } -// impl LatticeBimorphism for GhtBimorphism -// where -// GhtA: GeneralizedHashTrie, -// GhtB: GeneralizedHashTrie, -// for<'a, 'b> ValFunc: LatticeBimorphism<&'a GhtA::Trie, &'b GhtB::Trie, Output = Output>, -// Output: GeneralizedHashTrieNode, -// // <::ValType as VariadicExt>::Extend< -// // ::ValType, -// // >: + AsRefVariadicPartialEq -// { -// type Output = GHT; // HashMap; // GhtOut; - -// fn call(&mut self, ght_a: GhtA, ght_b: GhtB) -> Self::Output { -// let node_bim = &mut self.bimorphism; // GhtNodeKeyedBimorphism::::new(self.bimorphism); -// let trie = node_bim.call(ght_a.get_trie(), ght_b.get_trie()); -// GHT { -// trie, -// _key: std::marker::PhantomData, -// } -// } -// } - impl LatticeBimorphism for GhtBimorphism where GhtA: GeneralizedHashTrieNode,