Skip to content

Commit 4c979f0

Browse files
Remove unused hydra-tui functions (#1677)
2 parents c8721eb + e1355d1 commit 4c979f0

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

hydra-tui/src/Hydra/TUI/Drawing.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ drawRemainingContestationPeriod deadline now =
187187
then padLeftRight 1 $ vBox [txt "Remaining time to contest: ", str (renderTime remaining)]
188188
else txt "Contestation period passed, ready to fan out soon."
189189

190-
drawTotalCommitted :: UTxO -> Widget n
191-
drawTotalCommitted utxo = str ("Total committed: " <> toString (renderValue (balance @Tx utxo)))
192-
193190
drawRemainingParties :: IdentifiedState -> [Party] -> Widget n
194191
drawRemainingParties k xs =
195192
str "Waiting for parties to commit:"
@@ -236,9 +233,6 @@ drawIfActive f = \case
236233
Idle -> emptyWidget
237234
Active x -> f x
238235

239-
drawIfLive :: (ActiveLink -> Widget n) -> ConnectedState -> Widget n
240-
drawIfLive f = drawIfConnected (drawIfActive f . headState)
241-
242236
drawPeersIfConnected :: ConnectedState -> Widget n
243237
drawPeersIfConnected = drawIfConnected (drawPeers . peers)
244238

hydra-tui/src/Hydra/TUI/Handlers.hs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,6 @@ handleVtyEventsFinal hydraClient e = do
356356
liftIO (sendInput hydraClient Init)
357357
_ -> pure ()
358358

359-
handleVtyEventsConnection ::
360-
CardanoClient ->
361-
Client Tx IO ->
362-
Vty.Event ->
363-
EventM Name Connection ()
364-
handleVtyEventsConnection cardanoClient hydraClient e = do
365-
zoom headStateL $ handleVtyEventsHeadState cardanoClient hydraClient e
366-
367359
handleVtyEventsLogState :: Vty.Event -> EventM Name LogState ()
368360
handleVtyEventsLogState = \case
369361
EvKey (KChar '<') [] -> scroll Up

0 commit comments

Comments
 (0)