1
1
Fork 0
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:
Sergei Zimmerman 2025-08-08 01:20:50 +03:00
parent 90aa2b83b5
commit 1b4aa5c1ef
No known key found for this signature in database
2 changed files with 0 additions and 10 deletions

View file

@ -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

View file

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