From 83e983d4d071954b5b97d01250b2d38ba7674095 Mon Sep 17 00:00:00 2001 From: Duarte Nunes Date: Mon, 15 Jan 2018 01:35:46 +0000 Subject: [PATCH] mutation_partition: Remove unused operator==() Signed-off-by: Duarte Nunes Message-Id: <20180115013546.67260-1-duarte@scylladb.com> --- mutation_partition.cc | 14 -------------- mutation_partition.hh | 4 ---- 2 files changed, 18 deletions(-) diff --git a/mutation_partition.cc b/mutation_partition.cc index 0e17a01c89..582dd6507c 100644 --- a/mutation_partition.cc +++ b/mutation_partition.cc @@ -1389,20 +1389,6 @@ auto row::with_both_ranges(const row& other, Func&& func) const { } } -bool row::operator==(const row& other) const { - if (size() != other.size()) { - return false; - } - - auto cells_equal = [] (std::pair c1, - std::pair c2) { - return c1.first == c2.first && c1.second == c2.second; - }; - return with_both_ranges(other, [&] (auto r1, auto r2) { - return boost::equal(r1, r2, cells_equal); - }); -} - bool row::equal(column_kind kind, const schema& this_schema, const row& other, const schema& other_schema) const { if (size() != other.size()) { return false; diff --git a/mutation_partition.hh b/mutation_partition.hh index 1fb5ac4c0f..79bfef20ea 100644 --- a/mutation_partition.hh +++ b/mutation_partition.hh @@ -268,10 +268,6 @@ public: row difference(const schema&, column_kind, const row& other) const; - // Assumes the other row has the same schema - // Consistent with feed_hash() - bool operator==(const row&) const; - bool equal(column_kind kind, const schema& this_schema, const row& other, const schema& other_schema) const; size_t external_memory_usage() const;