From de7c0f814c650799f92fdd42384f7b93740633dc Mon Sep 17 00:00:00 2001 From: Yerkebulan Tulibergenov Date: Tue, 15 Jan 2019 20:28:01 -0800 Subject: delete unused fn --- crates/ra_ide_api_light/src/assists/introduce_variable.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'crates/ra_ide_api_light/src/assists') 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> { }) } -fn is_semi_right_after(node: &SyntaxNode) -> bool { - let mut node = node; - loop { - if let Some(next) = node.next_sibling() { - if next.kind() == WHITESPACE { - node = next; - continue; - } - return next.kind() == SEMI; - } - return false; - } -} - #[cfg(test)] mod tests { use super::*; -- cgit v1.2.3