diff options
author | Aleksey Kladov <[email protected]> | 2020-03-25 09:09:50 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-25 09:09:50 +0000 |
commit | f7f0f33e050c8b09dba2b469edf2c7d04d46a946 (patch) | |
tree | 61444885eeb3e6639e728b52541684d1b68d6d3c /crates/ra_syntax/src | |
parent | 8a73a8937d67db97072a11a40f0c3ed963e18e1b (diff) |
Remove dead code
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/algo.rs | 11 |
1 files changed, 0 insertions, 11 deletions
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 { | |||
329 | Single(SyntaxElement), | 329 | Single(SyntaxElement), |
330 | } | 330 | } |
331 | 331 | ||
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 | |||
343 | fn with_children( | 332 | fn with_children( |
344 | parent: &SyntaxNode, | 333 | parent: &SyntaxNode, |
345 | new_children: Vec<NodeOrToken<rowan::GreenNode, rowan::GreenToken>>, | 334 | new_children: Vec<NodeOrToken<rowan::GreenNode, rowan::GreenToken>>, |