mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Merge pull request #13956 from NixOS/drop-unused-addMultipleToStoreLegacy
Drop unused LegacySSHStore::addMultipleToStoreLegacy()
This commit is contained in:
commit
8c789db05b
2 changed files with 0 additions and 22 deletions
|
|
@ -179,12 +179,6 @@ public:
|
||||||
*/
|
*/
|
||||||
StorePathSet queryValidPaths(const StorePathSet & paths, bool lock, SubstituteFlag maybeSubstitute = NoSubstitute);
|
StorePathSet queryValidPaths(const StorePathSet & paths, bool lock, SubstituteFlag maybeSubstitute = NoSubstitute);
|
||||||
|
|
||||||
/**
|
|
||||||
* Just exists because this is exactly what Hydra was doing, and we
|
|
||||||
* don't yet want an algorithmic change.
|
|
||||||
*/
|
|
||||||
void addMultipleToStoreLegacy(Store & srcStore, const StorePathSet & paths);
|
|
||||||
|
|
||||||
void connect() override;
|
void connect() override;
|
||||||
|
|
||||||
unsigned int getProtocol() override;
|
unsigned int getProtocol() override;
|
||||||
|
|
|
||||||
|
|
@ -302,22 +302,6 @@ StorePathSet LegacySSHStore::queryValidPaths(const StorePathSet & paths, bool lo
|
||||||
return conn->queryValidPaths(*this, lock, paths, maybeSubstitute);
|
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()
|
void LegacySSHStore::connect()
|
||||||
{
|
{
|
||||||
auto conn(connections->get());
|
auto conn(connections->get());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue