diff options
author | Yerkebulan Tulibergenov <[email protected]> | 2019-01-16 04:28:01 +0000 |
---|---|---|
committer | Yerkebulan Tulibergenov <[email protected]> | 2019-01-16 04:28:01 +0000 |
commit | de7c0f814c650799f92fdd42384f7b93740633dc (patch) | |
tree | f1a237030c0a957045ea58a534804937261ecb90 /crates | |
parent | 4dd7ec94bc92055f09fe2aa6a8920a4e32075cef (diff) |
delete unused fn
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide_api_light/src/assists/introduce_variable.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/crates/ra_ide_api_light/src/assists/introduce_variable.rs b/crates/ra_ide_api_light/src/assists/introduce_variable.rs index 230d23039..922f71254 100644 --- a/crates/ra_ide_api_light/src/assists/introduce_variable.rs +++ b/crates/ra_ide_api_light/src/assists/introduce_variable.rs | |||
@@ -61,20 +61,6 @@ fn anchor_stmt(expr: &ast::Expr) -> Option<&SyntaxNode> { | |||
61 | }) | 61 | }) |
62 | } | 62 | } |
63 | 63 | ||
64 | fn is_semi_right_after(node: &SyntaxNode) -> bool { | ||
65 | let mut node = node; | ||
66 | loop { | ||
67 | if let Some(next) = node.next_sibling() { | ||
68 | if next.kind() == WHITESPACE { | ||
69 | node = next; | ||
70 | continue; | ||
71 | } | ||
72 | return next.kind() == SEMI; | ||
73 | } | ||
74 | return false; | ||
75 | } | ||
76 | } | ||
77 | |||
78 | #[cfg(test)] | 64 | #[cfg(test)] |
79 | mod tests { | 65 | mod tests { |
80 | use super::*; | 66 | use super::*; |