mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-02 13:06:57 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user