summaryrefslogtreecommitdiff
path: root/Command/Unused.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-22 14:27:50 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-22 14:27:50 -0400
commitd3f0106f2ed15a4e4abbc09cc3e985a27dfee662 (patch)
tree2d5867dd13895eabc4def6412d791f543f3e2710 /Command/Unused.hs
parent78a325b09315efd593e6b729de18f15871a0d643 (diff)
move LocationLog into Annex monad from IO
It will need to run in Annex so it can use Branch
Diffstat (limited to 'Command/Unused.hs')
-rw-r--r--Command/Unused.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Unused.hs b/Command/Unused.hs
index 5422dad69..4389b2209 100644
--- a/Command/Unused.hs
+++ b/Command/Unused.hs
@@ -68,7 +68,7 @@ checkRemoteUnused' r = do
showNote $ "checking for unused data..."
g <- Annex.gitRepo
referenced <- getKeysReferenced
- logged <- liftIO $ loggedKeys g
+ logged <- loggedKeys g
remotehas <- filterM isthere logged
let remoteunused = remotehas `exclude` referenced
let list = number 0 remoteunused
@@ -79,7 +79,7 @@ checkRemoteUnused' r = do
where
isthere k = do
g <- Annex.gitRepo
- us <- liftIO $ keyLocations g k
+ us <- keyLocations g k
return $ uuid `elem` us
uuid = Remote.uuid r