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 <xemul@scylladb.com>
This commit is contained in:
Pavel Emelyanov
2021-08-24 21:19:39 +03:00
parent f82b5f30f6
commit 7a0e56d7c1

View File

@@ -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);
}