Skip to content

Commit afa39da

Browse files
committed
Remove isOpen from LedgerTablesHandle
It is unused
1 parent f8de540 commit afa39da

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/LedgerDB/V2/InMemory.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ newInMemoryLedgerTablesHandle someFS@(SomeHasFS hasFS) l = do
121121
, tablesSize = do
122122
hs <- readTVarIO tv
123123
guardClosed hs (pure . Just . Map.size . getValuesMK . getLedgerTables)
124-
, isOpen = do
125-
hs <- readTVarIO tv
126-
case hs of
127-
LedgerTablesHandleOpen{} -> pure True
128-
LedgerTablesHandleClosed{} -> pure False
129124
}
130125

131126
{-------------------------------------------------------------------------------

ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/LedgerDB/V2/LedgerSeq.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ data LedgerTablesHandle m l = LedgerTablesHandle {
9292
-- | Consult the size of the ledger tables in the database. This will return
9393
-- 'Nothing' in backends that do not support this operation.
9494
, tablesSize :: !(m (Maybe Int))
95-
, isOpen :: !(m Bool)
9695
}
9796
deriving NoThunks via OnlyCheckWhnfNamed "LedgerTablesHandle" (LedgerTablesHandle m l)
9897

0 commit comments

Comments
 (0)