diff --git a/core/src/text_buffer/rope/mod.rs b/core/src/text_buffer/rope/mod.rs index 4cb1e83..fe21c71 100644 --- a/core/src/text_buffer/rope/mod.rs +++ b/core/src/text_buffer/rope/mod.rs @@ -225,14 +225,6 @@ impl Rope { } } - /// Returns true if this node is a leaf node, false otherwise - pub fn is_leaf(&self) -> bool { - match &self { - Rope::Branch { .. } => false, - Rope::Leaf { .. } => true, - } - } - /// Returns an iterator over the chars of the text pub fn iter_chars(self: &Rc) -> CharIterator { CharIterator::new(self)