From fb0ab9f7456018ff0bac628e05366f976c5af1a7 Mon Sep 17 00:00:00 2001 From: Igor Aleksanov Date: Thu, 8 Oct 2020 09:27:38 +0300 Subject: Keep SyntaxNodePtr::range private --- crates/syntax/src/ptr.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crates/syntax/src') diff --git a/crates/syntax/src/ptr.rs b/crates/syntax/src/ptr.rs index 34e20464a..d3fb7a5d9 100644 --- a/crates/syntax/src/ptr.rs +++ b/crates/syntax/src/ptr.rs @@ -23,10 +23,6 @@ impl SyntaxNodePtr { SyntaxNodePtr { range: node.text_range(), kind: node.kind() } } - pub fn text_range(&self) -> TextRange { - self.range.clone() - } - pub fn to_node(&self, root: &SyntaxNode) -> SyntaxNode { assert!(root.parent().is_none()); successors(Some(root.clone()), |node| { -- cgit v1.2.3