From b5400f90fe3eb217707fcb4e3a48cf11be352b94 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 17 Apr 2015 12:07:47 -0700 Subject: [PATCH] Kill dead code Summary: this is not used anywhere Test Plan: compiles Reviewers: yhchiang, sdong Reviewed By: sdong Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D37053 --- db/compaction_picker.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/db/compaction_picker.h b/db/compaction_picker.h index c3f1a265a..db48802ae 100644 --- a/db/compaction_picker.h +++ b/db/compaction_picker.h @@ -64,10 +64,6 @@ class CompactionPicker { uint32_t output_path_id, const InternalKey* begin, const InternalKey* end, InternalKey** compaction_end); - // Given the current number of levels, returns the lowest allowed level - // for compaction input. - virtual int MaxInputLevel(int current_num_levels) const = 0; - // The maximum allowed output level. Default value is NumberLevels() - 1. virtual int MaxOutputLevel() const { return NumberLevels() - 1; @@ -184,12 +180,6 @@ class LevelCompactionPicker : public CompactionPicker { VersionStorageInfo* vstorage, LogBuffer* log_buffer) override; - // Returns current_num_levels - 2, meaning the last level cannot be - // compaction input level. - virtual int MaxInputLevel(int current_num_levels) const override { - return current_num_levels - 2; - } - virtual bool NeedsCompaction(const VersionStorageInfo* vstorage) const override; @@ -220,10 +210,6 @@ class UniversalCompactionPicker : public CompactionPicker { VersionStorageInfo* vstorage, LogBuffer* log_buffer) override; - virtual int MaxInputLevel(int current_num_levels) const override { - return NumberLevels() - 2; - } - virtual int MaxOutputLevel() const override { return NumberLevels() - 1; } virtual bool NeedsCompaction(const VersionStorageInfo* vstorage) const @@ -300,11 +286,6 @@ class FIFOCompactionPicker : public CompactionPicker { uint32_t output_path_id, const InternalKey* begin, const InternalKey* end, InternalKey** compaction_end) override; - // The maxinum allowed input level. Always returns 0. - virtual int MaxInputLevel(int current_num_levels) const override { - return 0; - } - // The maximum allowed output level. Always returns 0. virtual int MaxOutputLevel() const override { return 0; @@ -338,12 +319,6 @@ class NullCompactionPicker : public CompactionPicker { return nullptr; } - // Given the current number of levels, returns the highest allowed level - // for compaction input. - virtual int MaxInputLevel(int current_num_levels) const override { - return current_num_levels - 2; - } - // Always returns false. virtual bool NeedsCompaction(const VersionStorageInfo* vstorage) const override {