Remove unused function Rope::is_leaf()

This commit is contained in:
Matthew Gordon 2025-10-30 21:49:37 -03:00
parent ef375f6472
commit 4ca32decc9
1 changed files with 0 additions and 8 deletions

View File

@ -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 /// Returns an iterator over the chars of the text
pub fn iter_chars(self: &Rc<Self>) -> CharIterator { pub fn iter_chars(self: &Rc<Self>) -> CharIterator {
CharIterator::new(self) CharIterator::new(self)