mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
libstore: Remove unused overload of scanForReferences
This doesn't seem to be used anywhere at the moment. It might be used out-of-tree, but this is a small convenience function that is not worth keeping without in-tree usage.
This commit is contained in:
parent
90aa2b83b5
commit
1b4aa5c1ef
2 changed files with 0 additions and 10 deletions
|
|
@ -6,8 +6,6 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
std::pair<StorePathSet, HashResult> scanForReferences(const Path & path, const StorePathSet & refs);
|
|
||||||
|
|
||||||
StorePathSet scanForReferences(Sink & toTee, const Path & path, const StorePathSet & refs);
|
StorePathSet scanForReferences(Sink & toTee, const Path & path, const StorePathSet & refs);
|
||||||
|
|
||||||
class PathRefScanSink : public RefScanSink
|
class PathRefScanSink : public RefScanSink
|
||||||
|
|
|
||||||
|
|
@ -43,14 +43,6 @@ StorePathSet PathRefScanSink::getResultPaths()
|
||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::pair<StorePathSet, HashResult> scanForReferences(const std::string & path, const StorePathSet & refs)
|
|
||||||
{
|
|
||||||
HashSink hashSink{HashAlgorithm::SHA256};
|
|
||||||
auto found = scanForReferences(hashSink, path, refs);
|
|
||||||
auto hash = hashSink.finish();
|
|
||||||
return std::pair<StorePathSet, HashResult>(found, hash);
|
|
||||||
}
|
|
||||||
|
|
||||||
StorePathSet scanForReferences(Sink & toTee, const Path & path, const StorePathSet & refs)
|
StorePathSet scanForReferences(Sink & toTee, const Path & path, const StorePathSet & refs)
|
||||||
{
|
{
|
||||||
PathRefScanSink refsSink = PathRefScanSink::fromPaths(refs);
|
PathRefScanSink refsSink = PathRefScanSink::fromPaths(refs);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue