crimson/onode-staged-tree: remove unused code

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
This commit is contained in:
Yingxin Cheng 2021-06-08 09:42:34 +08:00
parent ee005111fb
commit b2f1c7df9c

View File

@ -42,19 +42,6 @@ class node_extent_t {
const char* p_start() const { return fields_start(*p_fields); }
const char* off_to_ptr(node_offset_t off) const {
assert(off <= node_size);
return p_start() + off;
}
node_offset_t ptr_to_off(const void* ptr) const {
auto _ptr = static_cast<const char*>(ptr);
assert(_ptr >= p_start());
auto off = _ptr - p_start();
assert(off <= node_size);
return off;
}
bool is_level_tail() const { return p_fields->is_level_tail(); }
level_t level() const { return p_fields->header.level; }
node_offset_t free_size() const {