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:
@@ -6,8 +6,6 @@
|
||||
|
||||
namespace nix {
|
||||
|
||||
std::pair<StorePathSet, HashResult> scanForReferences(const Path & path, const StorePathSet & refs);
|
||||
|
||||
StorePathSet scanForReferences(Sink & toTee, const Path & path, const StorePathSet & refs);
|
||||
|
||||
class PathRefScanSink : public RefScanSink
|
||||
|
||||
@@ -43,14 +43,6 @@ StorePathSet PathRefScanSink::getResultPaths()
|
||||
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)
|
||||
{
|
||||
PathRefScanSink refsSink = PathRefScanSink::fromPaths(refs);
|
||||
|
||||
Reference in New Issue
Block a user