1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 05:26:02 +01:00

refactor(libstore/find-cycles): remove unused refLength constant

After refactoring to use `RefScanSink`, we no longer manually search for
hashes in buffers, so the `refLength` constant (hash length) is unused.
`RefScanSink` handles this internally.
This commit is contained in:
Bernardo Meurer Costa 2025-10-11 19:48:02 +00:00
parent 591851cd5e
commit 22e74e5f1e
No known key found for this signature in database

View file

@ -12,9 +12,6 @@
namespace nix {
// Hash length in characters (32 for base32-encoded sha256)
static constexpr size_t refLength = StorePath::HashLen;
CycleEdgeScanSink::CycleEdgeScanSink(StringSet && hashes, std::string storeDir)
: RefScanSink(std::move(hashes))
, storeDir(std::move(storeDir))