Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Remove unused BTreeMap/HashMap Get impls
Fintan Halpenny committed 22 days ago
commit c9c75621fad41dc4e1339012f758b270f94bb23b
parent 78922b3d075bee6c572869c546c5533a14b36c61
1 file changed +0 -12
modified crates/radicle/src/git/canonical/symbolic.rs
@@ -201,18 +201,6 @@ mod reachability {
        fn get(&'a self, key: &'b K) -> Option<&'a V>;
    }

-
    impl<'a, 'b, K: Ord, V> Get<'a, 'b, K, V> for std::collections::BTreeMap<K, V> {
-
        fn get(&'a self, key: &'b K) -> Option<&'a V> {
-
            std::collections::BTreeMap::get(self, key)
-
        }
-
    }
-

-
    impl<'a, 'b, K: Eq + std::hash::Hash, V> Get<'a, 'b, K, V> for std::collections::HashMap<K, V> {
-
        fn get(&'a self, key: &'b K) -> Option<&'a V> {
-
            std::collections::HashMap::get(self, key)
-
        }
-
    }
-

    impl<'a, 'b, K: Eq + std::hash::Hash, V> Get<'a, 'b, K, V> for indexmap::IndexMap<K, V> {
        fn get(&'a self, key: &'b K) -> Option<&'a V> {
            indexmap::IndexMap::get(self, key)