mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Remove dead code
This commit is contained in:
parent
8a73a8937d
commit
f7f0f33e05
1 changed files with 0 additions and 11 deletions
|
@ -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>>,
|
||||
|
|
Loading…
Reference in a new issue