From 482d28f130511e7ce5f94dfcb03e020b4e1d9831 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 24 Sep 2020 15:32:13 +0200 Subject: Fix target declaration upgrade logic --- libbuild2/target.hxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libbuild2/target.hxx') diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index ec97950..73363ae 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -118,12 +118,6 @@ namespace build2 real // Real dependency declaration. }; - inline bool - operator> (target_decl l, target_decl r) - { - return static_cast (l) > static_cast (r); - } - class LIBBUILD2_SYMEXPORT target { public: @@ -156,8 +150,8 @@ namespace build2 const dir_path& out_dir () const {return out.empty () ? dir : out;} - // Note that the declaration should only be upgraded during the load phase - // via the MT-safe target_set::insert(). + // Note that the target declaration should only be upgraded via the MT- + // safe target_set::insert(). // target_decl decl; -- cgit v1.1