From 25a4f152cd5db4cb686ff6035ff38f4d5dd49631 Mon Sep 17 00:00:00 2001 From: "Raphael S. Carvalho" Date: Thu, 12 Oct 2017 04:29:05 -0300 Subject: [PATCH] sstables: remove dead sstable method Signed-off-by: Raphael S. Carvalho Message-Id: <20171012072905.12737-1-raphaelsc@scylladb.com> --- sstables/sstables.cc | 11 ----------- sstables/sstables.hh | 2 -- 2 files changed, 13 deletions(-) diff --git a/sstables/sstables.cc b/sstables/sstables.cc index d1ee1e9239..dd7afd63a0 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -2842,17 +2842,6 @@ sstable::get_sstable_key_range(const schema& s) { }); } -future> -sstable::get_owning_shards_from_unloaded() { - return when_all(read_summary(default_priority_class()), read_scylla_metadata(default_priority_class())).then( - [this] (std::tuple, future<>> rets) { - std::get<0>(rets).get(); - std::get<1>(rets).get(); - set_first_and_last_keys(); - return get_shards_for_this_sstable(); - }); -} - /** * Returns a pair of positions [p1, p2) in the summary file corresponding to entries * covered by the specified range, or a disengaged optional if no such pair exists. diff --git a/sstables/sstables.hh b/sstables/sstables.hh index adc928c4e0..7c6c896bf8 100644 --- a/sstables/sstables.hh +++ b/sstables/sstables.hh @@ -716,8 +716,6 @@ public: future> get_sstable_key_range(const schema& s); - future> get_owning_shards_from_unloaded(); - const std::vector>& clustering_components_ranges() const; // Gets ratio of droppable tombstone. A tombstone is considered droppable here