From f7f0f33e050c8b09dba2b469edf2c7d04d46a946 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 25 Mar 2020 10:09:50 +0100 Subject: Remove dead code --- crates/ra_syntax/src/algo.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'crates/ra_syntax/src') diff --git a/crates/ra_syntax/src/algo.rs b/crates/ra_syntax/src/algo.rs index 4d463a3ef..191123c8e 100644 --- a/crates/ra_syntax/src/algo.rs +++ b/crates/ra_syntax/src/algo.rs @@ -329,17 +329,6 @@ enum Replacement { Single(SyntaxElement), } -/// Replaces descendants in the node, according to the mapping. -/// -/// This is a type-unsafe low-level editing API, if you need to use it, prefer -/// to create a type-safe abstraction on top of it instead. -pub fn _replace_descendants( - parent: &SyntaxNode, - map: impl Fn(&SyntaxElement) -> Option, -) -> SyntaxNode { - SyntaxRewriter::from_fn(map).rewrite(parent) -} - fn with_children( parent: &SyntaxNode, new_children: Vec>, -- cgit v1.2.3