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
This commit is contained in:
Igor Canadi 2015-04-17 12:07:47 -07:00
parent 48b0a045da
commit b5400f90fe
1 changed files with 0 additions and 25 deletions

View File

@ -64,10 +64,6 @@ class CompactionPicker {
uint32_t output_path_id, const InternalKey* begin, const InternalKey* end, uint32_t output_path_id, const InternalKey* begin, const InternalKey* end,
InternalKey** compaction_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. // The maximum allowed output level. Default value is NumberLevels() - 1.
virtual int MaxOutputLevel() const { virtual int MaxOutputLevel() const {
return NumberLevels() - 1; return NumberLevels() - 1;
@ -184,12 +180,6 @@ class LevelCompactionPicker : public CompactionPicker {
VersionStorageInfo* vstorage, VersionStorageInfo* vstorage,
LogBuffer* log_buffer) override; 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 virtual bool NeedsCompaction(const VersionStorageInfo* vstorage) const
override; override;
@ -220,10 +210,6 @@ class UniversalCompactionPicker : public CompactionPicker {
VersionStorageInfo* vstorage, VersionStorageInfo* vstorage,
LogBuffer* log_buffer) override; 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 int MaxOutputLevel() const override { return NumberLevels() - 1; }
virtual bool NeedsCompaction(const VersionStorageInfo* vstorage) const 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, uint32_t output_path_id, const InternalKey* begin, const InternalKey* end,
InternalKey** compaction_end) override; 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. // The maximum allowed output level. Always returns 0.
virtual int MaxOutputLevel() const override { virtual int MaxOutputLevel() const override {
return 0; return 0;
@ -338,12 +319,6 @@ class NullCompactionPicker : public CompactionPicker {
return nullptr; 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. // Always returns false.
virtual bool NeedsCompaction(const VersionStorageInfo* vstorage) const virtual bool NeedsCompaction(const VersionStorageInfo* vstorage) const
override { override {