Skip to content

Commit 522fa5c

Browse files
committed
fix: remove new Monkey additions after rebase
1 parent f93b552 commit 522fa5c

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

src/Database/LSMTree/Internal/RunAcc.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ data RunBloomFilterAlloc =
8686
instance NFData RunBloomFilterAlloc where
8787
rnf (RunAllocFixed a) = rnf a
8888
rnf (RunAllocRequestFPR a) = rnf a
89-
rnf (RunAllocMonkey a) = rnf a
9089

9190
-- | @'new' nentries@ starts an incremental run construction.
9291
--

src/Database/LSMTree/Internal/Snapshot/Codec.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,6 @@ instance Encode RunBloomFilterAlloc where
421421
encodeListLen 2
422422
<> encodeWord 1
423423
<> encodeDouble fpr
424-
encode (RunAllocMonkey bits) =
425-
encodeListLen 2
426-
<> encodeWord 2
427-
<> encodeWord64 bits
428424

429425
instance DecodeVersioned RunBloomFilterAlloc where
430426
decodeVersioned V0 = do
@@ -433,7 +429,6 @@ instance DecodeVersioned RunBloomFilterAlloc where
433429
case (n, tag) of
434430
(2, 0) -> RunAllocFixed <$> decodeWord64
435431
(2, 1) -> RunAllocRequestFPR <$> decodeDouble
436-
(2, 2) -> RunAllocMonkey <$> decodeWord64
437432
_ -> fail ("[RunBloomFilterAlloc] Unexpected combination of list length and tag: " <> show (n, tag))
438433

439434
-- BloomFilterAlloc

test/Test/Database/LSMTree/Internal/Snapshot/Codec.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,9 @@ instance Arbitrary RunBloomFilterAlloc where
356356
arbitrary = oneof [
357357
RunAllocFixed <$> arbitrary
358358
, RunAllocRequestFPR <$> arbitrary
359-
, RunAllocMonkey <$> arbitrary
360359
]
361360
shrink (RunAllocFixed x) = RunAllocFixed <$> shrink x
362361
shrink (RunAllocRequestFPR x) = RunAllocRequestFPR <$> shrink x
363-
shrink (RunAllocMonkey x) = RunAllocMonkey <$> shrink x
364362

365363
{-------------------------------------------------------------------------------
366364
Show

0 commit comments

Comments
 (0)