aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/remote-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r--src/libstore/remote-store.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index dc2efefeb..772979066 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -31,7 +31,6 @@ template<> StorePathSet readStorePaths(const Store & store, Source & from)
return paths;
}
-
void writeStorePaths(const Store & store, Sink & out, const StorePathSet & paths)
{
out << paths.size();
@@ -39,11 +38,6 @@ void writeStorePaths(const Store & store, Sink & out, const StorePathSet & paths
out << store.printStorePath(i);
}
-StorePath read(const Store & store, Source & from, Proxy<StorePath> _)
-{
- auto path = readString(from);
- return store.parseStorePath(path);
-}
StorePathCAMap readStorePathCAMap(const Store & store, Source & from)
{
@@ -63,10 +57,17 @@ void writeStorePathCAMap(const Store & store, Sink & out, const StorePathCAMap &
}
}
+
+StorePath read(const Store & store, Source & from, Proxy<StorePath> _)
+{
+ auto path = readString(from);
+ return store.parseStorePath(path);
+}
+
void write(const Store & store, Sink & out, const StorePath & storePath)
{
- auto path = store.printStorePath(storePath);
- out << path;
+ auto path = store.printStorePath(storePath);
+ out << path;
}