From 953e7b8af495d93def17b4b36fdc1ab266eacbf7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 5 Dec 2025 10:25:22 +0100 Subject: [PATCH] DerivedPath: Remove superfluous operator == This is already implied by the fact that it inherits from std::variant. --- src/libstore/include/nix/store/derived-path.hh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libstore/include/nix/store/derived-path.hh b/src/libstore/include/nix/store/derived-path.hh index 70074ea40..1e806371a 100644 --- a/src/libstore/include/nix/store/derived-path.hh +++ b/src/libstore/include/nix/store/derived-path.hh @@ -234,10 +234,6 @@ struct DerivedPath : _DerivedPathRaw return static_cast(*this); } - bool operator==(const DerivedPath &) const = default; - // TODO libc++ 16 (used by darwin) missing `std::set::operator <=>`, can't do yet. - // auto operator <=> (const DerivedPath &) const = default; - /** * Get the store path this is ultimately derived from (by realising * and projecting outputs).