mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
Drop unused LegacySSHStore::addMultipleToStoreLegacy()
This commit is contained in:
parent
247d16a530
commit
5013b38df4
2 changed files with 0 additions and 22 deletions
|
|
@ -302,22 +302,6 @@ StorePathSet LegacySSHStore::queryValidPaths(const StorePathSet & paths, bool lo
|
|||
return conn->queryValidPaths(*this, lock, paths, maybeSubstitute);
|
||||
}
|
||||
|
||||
void LegacySSHStore::addMultipleToStoreLegacy(Store & srcStore, const StorePathSet & paths)
|
||||
{
|
||||
auto conn(connections->get());
|
||||
conn->to << ServeProto::Command::ImportPaths;
|
||||
try {
|
||||
srcStore.exportPaths(paths, conn->to);
|
||||
} catch (...) {
|
||||
conn->good = false;
|
||||
throw;
|
||||
}
|
||||
conn->to.flush();
|
||||
|
||||
if (readInt(conn->from) != 1)
|
||||
throw Error("remote machine failed to import closure");
|
||||
}
|
||||
|
||||
void LegacySSHStore::connect()
|
||||
{
|
||||
auto conn(connections->get());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue