summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-12-28 17:21:19 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-12-28 17:21:19 +0100
commit6262a703636000e525d5c1b877ac28d604a493f0 (patch)
tree539cf206af8b86ebe1f6c6b72f5d57580a69d8b0
parent5ef7e63ac61efcab020e64bca39ffdc1716718ed (diff)
scanForReferences: Remove misleading comment
References have always been determined only by the hash part, not the name or the store prefix. Fixes #4396.
-rw-r--r--src/libstore/references.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libstore/references.cc b/src/libstore/references.cc
index eb117b5ba..39c4970c6 100644
--- a/src/libstore/references.cc
+++ b/src/libstore/references.cc
@@ -88,9 +88,6 @@ PathSet scanForReferences(Sink & toTee,
TeeSink sink { refsSink, toTee };
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) {
auto baseName = std::string(baseNameOf(i));
string::size_type pos = baseName.find('-');