Skip to content

Commit 3344235

Browse files
committed
Remove Leaf vs Leaf case
lookupCont can do the work
1 parent e6e66f7 commit 3344235

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Data/HashMap/Internal.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2327,8 +2327,6 @@ disjoint = disjointSubtrees 0
23272327

23282328
disjointSubtrees :: Eq k => Shift -> HashMap k a -> HashMap k b -> Bool
23292329
disjointSubtrees !_s Empty _b = True
2330-
disjointSubtrees _ (Leaf hA (L kA _)) (Leaf hB (L kB _)) =
2331-
hA /= hB || kA /= kB
23322330
disjointSubtrees s (Leaf hA (L kA _)) b =
23332331
lookupCont (\_ -> True) (\_ _ -> False) hA kA s b
23342332
disjointSubtrees s (BitmapIndexed bmA aryA) (BitmapIndexed bmB aryB) =

0 commit comments

Comments
 (0)