Skip to content

Commit 802aa3b

Browse files
Removing dead code.
1 parent 4c80a10 commit 802aa3b

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/Data/MonoTraversable/Keys.hs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,25 +2906,3 @@ monoLookupFoldable i t
29062906
go _ [] = Nothing
29072907
go 0 [x] = Just x
29082908
go !n (_:xs) = go (n-1) xs
2909-
2910-
2911-
{-
2912-
monoZipWithIntegralKey
2913-
:: ( Integral i, MonoTraversable mono)
2914-
=> (i -> Element mono -> Element mono -> Element mono) -> mono -> mono -> mono
2915-
monoZipWithIntegralKey f as bs = (`S.evalState` (0, otoList xs)) $ otraverse g ys
2916-
where
2917-
(xs, ys, swapped)
2918-
| olength xs >= olength ys = (as, bs, False)
2919-
| otherwise = (bs, as, True )
2920-
2921-
g y = do
2922-
(!k, v) <- S.get
2923-
case v of
2924-
[] -> pure y
2925-
z:zs -> do
2926-
S.put ((k+1), zs)
2927-
pure . f k $ if swapped
2928-
then y z
2929-
else z y
2930-
-}

0 commit comments

Comments
 (0)