From 05ed3e8fb85ea31207d901180544dc883e45a008 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Tue, 15 Jun 2021 11:57:16 +0800 Subject: [PATCH] Remove unused variables --- helix-term/src/commands.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 0f2a29c6..10d5e264 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -715,8 +715,6 @@ pub fn search(cx: &mut Context) { let view_id = view.id; let prompt = ui::regex_prompt(cx, "search:".to_string(), move |view, doc, regex| { - let text = doc.text(); - let start = doc.selection(view.id).cursor(); _search(doc, view, &contents, ®ex, false); // TODO: only store on enter (accept), not update