Remove unused function Rope::is_leaf()
This commit is contained in:
parent
ef375f6472
commit
4ca32decc9
|
|
@ -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<Self>) -> CharIterator {
|
||||
CharIterator::new(self)
|
||||
|
|
|
|||
Loading…
Reference in New Issue