From 7a0e56d7c1f82f3a205d8eb10cbc1110c28fa712 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Tue, 24 Aug 2021 21:19:39 +0300 Subject: [PATCH] range_tombstone: Drop without-link constructor The thing was used to move a range tombstone without detaching it from the containing list (well, intrusive set). Now when the linkage is gone this facility is no longer needed (and actually no longer used). Signed-off-by: Pavel Emelyanov --- range_tombstone.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/range_tombstone.hh b/range_tombstone.hh index 0ee19f5647..6386fcdbcb 100644 --- a/range_tombstone.hh +++ b/range_tombstone.hh @@ -66,10 +66,6 @@ public: range_tombstone(range_tombstone&& rt) noexcept : range_tombstone(std::move(rt.start), rt.start_kind, std::move(rt.end), rt.end_kind, std::move(rt.tomb)) { } - struct without_link { }; - range_tombstone(range_tombstone&& rt, without_link) noexcept - : range_tombstone(std::move(rt.start), rt.start_kind, std::move(rt.end), rt.end_kind, std::move(rt.tomb)) { - } range_tombstone(const range_tombstone& rt) : range_tombstone(rt.start, rt.start_kind, rt.end, rt.end_kind, rt.tomb) { } @@ -115,7 +111,7 @@ public: } }; friend void swap(range_tombstone& rt1, range_tombstone& rt2) noexcept { - range_tombstone tmp(std::move(rt2), without_link()); + range_tombstone tmp = std::move(rt2); rt2 = std::move(rt1); rt1 = std::move(tmp); }