3713: Remove dead code r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-03-25 09:14:58 +00:00 committed by GitHub
commit e5c07c3c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<SyntaxElement>,
) -> SyntaxNode {
SyntaxRewriter::from_fn(map).rewrite(parent)
}
fn with_children(
parent: &SyntaxNode,
new_children: Vec<NodeOrToken<rowan::GreenNode, rowan::GreenToken>>,