From 4ca32decc9176a59ae6c5c7784d10bcc524380b9 Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Thu, 30 Oct 2025 21:49:37 -0300 Subject: [PATCH] Remove unused function Rope::is_leaf() --- core/src/text_buffer/rope/mod.rs | 8 -------- 1 file changed, 8 deletions(-) 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)