mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 09:06:15 +02:00
scanForReferences: Remove misleading comment
References have always been determined only by the hash part, not the name or the store prefix. Fixes #4396.
This commit is contained in:
parent
5ef7e63ac6
commit
6262a70363
1 changed files with 0 additions and 3 deletions
|
@ -88,9 +88,6 @@ PathSet scanForReferences(Sink & toTee,
|
||||||
TeeSink sink { refsSink, toTee };
|
TeeSink sink { refsSink, toTee };
|
||||||
std::map<string, Path> backMap;
|
std::map<string, Path> backMap;
|
||||||
|
|
||||||
/* For efficiency (and a higher hit rate), just search for the
|
|
||||||
hash part of the file name. (This assumes that all references
|
|
||||||
have the form `HASH-bla'). */
|
|
||||||
for (auto & i : refs) {
|
for (auto & i : refs) {
|
||||||
auto baseName = std::string(baseNameOf(i));
|
auto baseName = std::string(baseNameOf(i));
|
||||||
string::size_type pos = baseName.find('-');
|
string::size_type pos = baseName.find('-');
|
||||||
|
|
Loading…
Reference in a new issue