summaryrefslogtreecommitdiffhomepage
path: root/Types
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-30 13:12:32 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-30 13:13:52 -0400
commitb02bfe47d0a07b813dfd5bc3a78ad02c3673b493 (patch)
treed75d22bfefc04b0ae8b6d866d574eb734b14cd99 /Types
parent69a78f842a368ff143fca220584393afabd674f2 (diff)
downloadkeysafe-b02bfe47d0a07b813dfd5bc3a78ad02c3673b493.tar.gz
refactor
Diffstat (limited to 'Types')
-rw-r--r--Types/Cost.hs8
1 files changed, 0 insertions, 8 deletions
diff --git a/Types/Cost.hs b/Types/Cost.hs
index b3aed71..e2a037d 100644
--- a/Types/Cost.hs
+++ b/Types/Cost.hs
@@ -26,14 +26,6 @@ instance Monoid (Cost t) where
CPUCost (Seconds a) `mappend` CPUCost (Seconds b) =
CPUCost (Seconds (a+b))
-mapCost :: (Integer -> Integer) -> Cost op -> Cost op
-mapCost f (CPUCost (Seconds n)) = CPUCost (Seconds (f n))
-
-showCostMinutes :: Cost op -> String
-showCostMinutes (CPUCost (Seconds n))
- | n < 61 = "1 minute"
- | otherwise = show (n `div` 60) ++ " minutes"
-
-- | Operations whose cost can be measured.
data DecryptionOp
data CreationOp