Skip to content

Commit

Permalink
Remove unused hydra-tui functions (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact authored Oct 3, 2024
2 parents c8721eb + e1355d1 commit 4c979f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions hydra-tui/src/Hydra/TUI/Drawing.hs
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@ drawRemainingContestationPeriod deadline now =
then padLeftRight 1 $ vBox [txt "Remaining time to contest: ", str (renderTime remaining)]
else txt "Contestation period passed, ready to fan out soon."

drawTotalCommitted :: UTxO -> Widget n
drawTotalCommitted utxo = str ("Total committed: " <> toString (renderValue (balance @Tx utxo)))

drawRemainingParties :: IdentifiedState -> [Party] -> Widget n
drawRemainingParties k xs =
str "Waiting for parties to commit:"
Expand Down Expand Up @@ -236,9 +233,6 @@ drawIfActive f = \case
Idle -> emptyWidget
Active x -> f x

drawIfLive :: (ActiveLink -> Widget n) -> ConnectedState -> Widget n
drawIfLive f = drawIfConnected (drawIfActive f . headState)

drawPeersIfConnected :: ConnectedState -> Widget n
drawPeersIfConnected = drawIfConnected (drawPeers . peers)

Expand Down
8 changes: 0 additions & 8 deletions hydra-tui/src/Hydra/TUI/Handlers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,6 @@ handleVtyEventsFinal hydraClient e = do
liftIO (sendInput hydraClient Init)
_ -> pure ()

handleVtyEventsConnection ::
CardanoClient ->
Client Tx IO ->
Vty.Event ->
EventM Name Connection ()
handleVtyEventsConnection cardanoClient hydraClient e = do
zoom headStateL $ handleVtyEventsHeadState cardanoClient hydraClient e

handleVtyEventsLogState :: Vty.Event -> EventM Name LogState ()
handleVtyEventsLogState = \case
EvKey (KChar '<') [] -> scroll Up
Expand Down

0 comments on commit 4c979f0

Please sign in to comment.