mirror of
https://github.com/ceph/ceph
synced 2025-01-02 00:52:22 +00:00
crimson/onode-staged-tree: remove unused code
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
This commit is contained in:
parent
ee005111fb
commit
b2f1c7df9c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user