From 288c9d1ac625c4fa451bdb8ff54830fb9f9795e0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 Aug 2018 14:07:41 +0300 Subject: Simplify API --- crates/libsyntax2/src/yellow/green.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crates/libsyntax2/src/yellow/green.rs') diff --git a/crates/libsyntax2/src/yellow/green.rs b/crates/libsyntax2/src/yellow/green.rs index 59aefb0de..dc3186a24 100644 --- a/crates/libsyntax2/src/yellow/green.rs +++ b/crates/libsyntax2/src/yellow/green.rs @@ -43,10 +43,6 @@ impl GreenNode { } } - pub fn leaf_text(&self) -> Option { - self.leaf_text_ref().map(Clone::clone) - } - pub fn leaf_text_ref(&self) -> Option<&SmolStr> { match self { GreenNode::Leaf { text, .. } => Some(text), -- cgit v1.2.3