daemon: Remove unused function exportPaths.
authorMaxime Devos <maximedevos@telenet.be>
Sat, 10 Sep 2022 17:20:39 +0000 (19:20 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Sun, 11 Sep 2022 14:43:30 +0000 (16:43 +0200)
* nix/libstore/store-api.cc (exportPaths): Remove it.
* nix/libstore/store-api.hh (exportPaths): Likewise.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
nix/libstore/store-api.cc
nix/libstore/store-api.hh

index e3a8ac0..781fb9e 100644 (file)
@@ -236,17 +236,6 @@ string showPaths(const PathSet & paths)
     return s;
 }
 
-
-void exportPaths(StoreAPI & store, const Paths & paths,
-    bool sign, Sink & sink)
-{
-    foreach (Paths::const_iterator, i, paths) {
-        writeInt(1, sink);
-        store.exportPath(*i, sign, sink);
-    }
-    writeInt(0, sink);
-}
-
 Path readStorePath(Source & from)
 {
     Path path = readString(from);
index 0693085..82a79e5 100644 (file)
@@ -369,13 +369,6 @@ extern std::shared_ptr<StoreAPI> store;
    and separated by commas). */
 string showPaths(const PathSet & paths);
 
-
-/* Export multiple paths in the format expected by ‘nix-store
-   --import’. */
-void exportPaths(StoreAPI & store, const Paths & paths,
-    bool sign, Sink & sink);
-
-
 MakeError(SubstError, Error)
 MakeError(BuildError, Error) /* denotes a permanent build failure */