summaryrefslogtreecommitdiff
path: root/UUID.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-27 15:56:43 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-27 16:04:25 -0400
commitb40f253d6e126d699e9f298bf670fc5e875bfd86 (patch)
tree546a11e81490fcc6b098085ceebd315cf3f6a305 /UUID.hs
parent2821effce9ae95a2ef12a083ce0806fe058ac987 (diff)
start of generalizing remotes
Goal is to support multiple different types of remotes, some of which are not git repositories. To that end, added a Remote class, and moved git remote specific code into Remote.GitRemote. Remotes.hs is still present as some code has not been converted to use the new Remote class yet.
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