mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Provide default implementations for a couple of Store methods
This commit is contained in:
parent
ddb5577f2e
commit
fa07558a06
4 changed files with 20 additions and 26 deletions
|
@ -71,9 +71,6 @@ public:
|
|||
PathSet & referrers) override
|
||||
{ notImpl(); }
|
||||
|
||||
PathSet queryValidDerivers(const Path & path) override
|
||||
{ return {}; }
|
||||
|
||||
PathSet queryDerivationOutputs(const Path & path) override
|
||||
{ notImpl(); }
|
||||
|
||||
|
@ -83,13 +80,6 @@ public:
|
|||
Path queryPathFromHashPart(const string & hashPart) override
|
||||
{ notImpl(); }
|
||||
|
||||
PathSet querySubstitutablePaths(const PathSet & paths) override
|
||||
{ return {}; }
|
||||
|
||||
void querySubstitutablePathInfos(const PathSet & paths,
|
||||
SubstitutablePathInfos & infos) override
|
||||
{ }
|
||||
|
||||
bool wantMassQuery() override { return wantMassQuery_; }
|
||||
|
||||
void addToStore(const ValidPathInfo & info, const ref<std::string> & nar,
|
||||
|
@ -121,21 +111,12 @@ public:
|
|||
void addIndirectRoot(const Path & path) override
|
||||
{ notImpl(); }
|
||||
|
||||
void syncWithGC() override
|
||||
{ }
|
||||
|
||||
Roots findRoots() override
|
||||
{ notImpl(); }
|
||||
|
||||
void collectGarbage(const GCOptions & options, GCResults & results) override
|
||||
{ notImpl(); }
|
||||
|
||||
void optimiseStore() override
|
||||
{ }
|
||||
|
||||
bool verifyStore(bool checkContents, bool repair) override
|
||||
{ return true; }
|
||||
|
||||
ref<FSAccessor> getFSAccessor() override;
|
||||
|
||||
void addSignatures(const Path & storePath, const StringSet & sigs) override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue