aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-25 09:14:58 +0000
committerGitHub <[email protected]>2020-03-25 09:14:58 +0000
commite5c07c3c9c4a427850bdabcfbedc01f7b4146f5d (patch)
tree61444885eeb3e6639e728b52541684d1b68d6d3c /crates
parent8a73a8937d67db97072a11a40f0c3ed963e18e1b (diff)
parentf7f0f33e050c8b09dba2b469edf2c7d04d46a946 (diff)
Merge #3713
3713: Remove dead code r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_syntax/src/algo.rs11
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.
336pub fn _replace_descendants(
337 parent: &SyntaxNode,
338 map: impl Fn(&SyntaxElement) -> Option<SyntaxElement>,
339) -> SyntaxNode {
340 SyntaxRewriter::from_fn(map).rewrite(parent)
341}
342
343fn with_children( 332fn 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>>,