From 705bd6da1ab9455c5ea2d48697c9cd516cf54698 Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Tue, 28 Feb 2017 09:27:36 +0100 Subject: [PATCH] sstables: Remove unused method --- sstables/sstables.cc | 5 ----- sstables/sstables.hh | 5 ----- 2 files changed, 10 deletions(-) diff --git a/sstables/sstables.cc b/sstables/sstables.cc index 9ad930e8f7..b032ee1ed1 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -2594,11 +2594,6 @@ sstable::get_owning_shards_from_unloaded() { }); } -void sstable::mark_sstable_for_deletion(const schema_ptr& schema, sstring dir, int64_t generation, version_types v, format_types f) { - auto sst = sstable(schema, dir, generation, v, f); - sst.mark_for_deletion(); -} - /** * 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 3ec913f684..1463a17352 100644 --- a/sstables/sstables.hh +++ b/sstables/sstables.hh @@ -708,11 +708,6 @@ public: const std::vector>& clustering_components_ranges() const; - // Used to mark a sstable for deletion that is not relevant to the current shard. - // It doesn't mean that the sstable will be deleted, but that the sstable is not - // relevant to the current shard, thus can be deleted by the deletion manager. - static void mark_sstable_for_deletion(const schema_ptr& schema, sstring dir, int64_t generation, version_types v, format_types f); - // returns all info needed for a sstable to be shared with other shards. static future load_shared_components(const schema_ptr& s, sstring dir, int generation, version_types v, format_types f);