me
/
guix
Archived
1
0
Fork 0

daemon: Remove unused function exportPaths.

* nix/libstore/store-api.cc (exportPaths): Remove it.
* nix/libstore/store-api.hh (exportPaths): Likewise.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
master
Maxime Devos 2022-09-10 19:20:39 +02:00 committed by Mathieu Othacehe
parent 1c5f5d6d8c
commit 93032586df
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
2 changed files with 0 additions and 18 deletions

View 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);

View 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 */