diff --git a/src/os/bluestore/Allocator.h b/src/os/bluestore/Allocator.h index ed65d8dc783..63f8e02c5b7 100644 --- a/src/os/bluestore/Allocator.h +++ b/src/os/bluestore/Allocator.h @@ -47,17 +47,6 @@ public: virtual int release( uint64_t offset, uint64_t length) = 0; - virtual int release_extents(AllocExtentVector *extents, int count) { - int res = 0; - for (int i = 0; i < count; i++) { - res = release((*extents)[i].offset, (*extents)[i].length); - if (res != 0) { - break; - } - } - return res; - } - virtual void dump() = 0; virtual void init_add_free(uint64_t offset, uint64_t length) = 0; diff --git a/src/test/objectstore/Allocator_test.cc b/src/test/objectstore/Allocator_test.cc index 180ef95e260..7976a21e410 100644 --- a/src/test/objectstore/Allocator_test.cc +++ b/src/test/objectstore/Allocator_test.cc @@ -169,7 +169,6 @@ TEST_P(AllocTest, test_alloc_min_max_alloc) for (auto& e : extents) { EXPECT_EQ(e.length, 2 * block_size); } - EXPECT_EQ(alloc->release_extents(&extents, count), 0); } }