summaryrefslogtreecommitdiff
path: root/UUID.hs
diff options
context:
space:
mode:
Diffstat (limited to 'UUID.hs')
-rw-r--r--UUID.hs18
1 files changed, 0 insertions, 18 deletions
diff --git a/UUID.hs b/UUID.hs
index 239d373f1..42afd7ba8 100644
--- a/UUID.hs
+++ b/UUID.hs
@@ -14,8 +14,6 @@ module UUID (
getUncachedUUID,
prepUUID,
genUUID,
- reposByUUID,
- reposWithoutUUID,
prettyPrintUUIDs,
describeUUID,
uuidLog,
@@ -87,22 +85,6 @@ prepUUID = do
uuid <- liftIO $ genUUID
Annex.setConfig configkey uuid
-{- Filters a list of repos to ones that have listed UUIDs. -}
-reposByUUID :: [Git.Repo] -> [UUID] -> Annex [Git.Repo]
-reposByUUID repos uuids = filterM match repos
- where
- match r = do
- u <- getUUID r
- return $ u `elem` uuids
-
-{- Filters a list of repos to ones that do not have the listed UUIDs. -}
-reposWithoutUUID :: [Git.Repo] -> [UUID] -> Annex [Git.Repo]
-reposWithoutUUID repos uuids = filterM unmatch repos
- where
- unmatch r = do
- u <- getUUID r
- return $ u `notElem` uuids
-
{- Pretty-prints a list of UUIDs -}
prettyPrintUUIDs :: [UUID] -> Annex String
prettyPrintUUIDs uuids = do