Skip to content

Commit e5c07c3

Browse files
bors[bot]matklad
andauthored
Merge #3713
3713: Remove dead code r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 8a73a89 + f7f0f33 commit e5c07c3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

crates/ra_syntax/src/algo.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -329,17 +329,6 @@ enum Replacement {
329329
Single(SyntaxElement),
330330
}
331331

332-
/// Replaces descendants in the node, according to the mapping.
333-
///
334-
/// This is a type-unsafe low-level editing API, if you need to use it, prefer
335-
/// to create a type-safe abstraction on top of it instead.
336-
pub fn _replace_descendants(
337-
parent: &SyntaxNode,
338-
map: impl Fn(&SyntaxElement) -> Option<SyntaxElement>,
339-
) -> SyntaxNode {
340-
SyntaxRewriter::from_fn(map).rewrite(parent)
341-
}
342-
343332
fn with_children(
344333
parent: &SyntaxNode,
345334
new_children: Vec<NodeOrToken<rowan::GreenNode, rowan::GreenToken>>,

0 commit comments

Comments
 (0)