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 9b8c189
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 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
4 changes: 0 additions & 4 deletions hydra-cluster/bench/Bench/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import Options.Applicative (
value,
)
import Options.Applicative.Builder (argument)
import Options.Applicative.Help (Doc, align, fillSep, line, (<+>))

data Options
= StandaloneOptions
Expand Down Expand Up @@ -90,9 +89,6 @@ standaloneOptionsParser =
<*> timeoutParser
<*> startingNodeIdParser

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

outputDirectoryParser :: Parser FilePath
outputDirectoryParser =
strOption
Expand Down

0 comments on commit 9b8c189

Please sign in to comment.