Skip to content
Snippets Groups Projects
Commit 2849670b authored by Iustin Pop's avatar Iustin Pop
Browse files

Remove obsolete Container.maxNameLen

This was only used in one place (hbal), and is obsolete by the change to
the dual name/alias structure.
parent 14c972c7
No related branches found
No related tags found
Loading
......@@ -48,7 +48,6 @@ module Ganeti.HTools.Container
, keys
-- * Element functions
, nameOf
, maxNameLen
, findByName
) where
......@@ -99,10 +98,6 @@ addTwo k1 v1 k2 v2 = add k1 v1 . add k2 v2
nameOf :: (T.Element a) => Container a -> Key -> String
nameOf c k = T.nameOf $ find k c
-- | Compute the maximum name length in an Element Container.
maxNameLen :: (T.Element a) => Container a -> Int
maxNameLen = maximum . map (length . T.nameOf) . elems
-- | Find an element by name in a Container; this is a very slow function.
findByName :: (T.Element a, Monad m) =>
Container a -> String -> m a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment