Skip to content

Commit

Permalink
Remove unused helper functions in EndToEnd benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Dec 8, 2024
1 parent 250ac50 commit b82cf10
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
18 changes: 0 additions & 18 deletions hydra-cluster/bench/Bench/EndToEnd.hs
Original file line number Diff line number Diff line change
Expand Up @@ -368,24 +368,6 @@ progressReport nodeId clientId queueSize queue = do
threadDelay 5
progressReport nodeId clientId queueSize queue

--
-- Helpers
--

assignUTxO :: (UTxO, Int) -> Map.Map Int (HydraClient, UTxO) -> Map.Map Int (HydraClient, UTxO)
assignUTxO (utxo, clientId) = Map.adjust appendUTxO clientId
where
appendUTxO (client, utxo') = (client, utxo <> utxo')

noUTxOs :: UTxO
noUTxOs = mempty

double :: Real a => a -> Double
double = realToFrac

int :: Int -> Int
int = id

type TransactionId = Integer
type TransactionInput = Int
type TransactionOutput = Int
Expand Down
3 changes: 0 additions & 3 deletions hydra-cluster/bench/Bench/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ standaloneOptionsParser =
<*> timeoutParser
<*> startingNodeIdParser

item :: [Doc] -> Doc
item items = line <> ("* " <+> align (fillSep items))

outputDirectoryParser :: Parser FilePath
outputDirectoryParser =
strOption
Expand Down

0 comments on commit b82cf10

Please sign in to comment.