mirror of
https://github.com/NixOS/nix.git
synced 2025-12-07 01:21:00 +01:00
Inline printHash16or32 and remove redundant helper (#13716)
Fixes ##13692 --------- Co-authored-by: John Ericson <git@JohnEricson.me> Co-authored-by: Sergei Zimmerman <sergei@zimmerman.foo>
This commit is contained in:
parent
d4c6f24e9f
commit
d2022189a1
3 changed files with 3 additions and 12 deletions
|
|
@ -60,12 +60,6 @@ std::strong_ordering Hash::operator<=>(const Hash & h) const noexcept
|
|||
return std::strong_ordering::equivalent;
|
||||
}
|
||||
|
||||
std::string printHash16or32(const Hash & hash)
|
||||
{
|
||||
assert(static_cast<char>(hash.algo));
|
||||
return hash.to_string(hash.algo == HashAlgorithm::MD5 ? HashFormat::Base16 : HashFormat::Nix32, false);
|
||||
}
|
||||
|
||||
std::string Hash::to_string(HashFormat hashFormat, bool includeAlgo) const
|
||||
{
|
||||
std::string s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue