From ccdebb99b547cd2eafc0b0e4f5cfc116fa729487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sun, 9 May 2021 18:32:40 +0900 Subject: [PATCH] Drop some useless imports. --- helix-term/src/ui/completion.rs | 1 - helix-term/src/ui/menu.rs | 1 - helix-term/src/ui/picker.rs | 3 +-- helix-term/src/ui/popup.rs | 6 ------ 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs index 238569f07..6fc7967a2 100644 --- a/helix-term/src/ui/completion.rs +++ b/helix-term/src/ui/completion.rs @@ -4,7 +4,6 @@ use tui::{ buffer::Buffer as Surface, layout::Rect, style::{Color, Style}, - widgets::{Block, Borders}, }; use std::borrow::Cow; diff --git a/helix-term/src/ui/menu.rs b/helix-term/src/ui/menu.rs index f9bfdd352..c771bc652 100644 --- a/helix-term/src/ui/menu.rs +++ b/helix-term/src/ui/menu.rs @@ -4,7 +4,6 @@ use tui::{ buffer::Buffer as Surface, layout::Rect, style::{Color, Style}, - widgets::{Block, Borders}, }; use std::borrow::Cow; diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 559752409..bf072877b 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -4,7 +4,7 @@ use tui::{ buffer::Buffer as Surface, layout::Rect, style::{Color, Style}, - widgets::{Block, Borders}, + widgets::{Block, BorderType, Borders}, }; use fuzzy_matcher::skim::SkimMatcherV2 as Matcher; @@ -224,7 +224,6 @@ impl Component for Picker { self.prompt.render(area, surface, cx); // -- Separator - use tui::widgets::BorderType; let style = Style::default().fg(Color::Rgb(90, 89, 119)); let symbols = BorderType::line_symbols(BorderType::Plain); for x in inner.left()..inner.right() { diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs index c59287e21..015d5c9b5 100644 --- a/helix-term/src/ui/popup.rs +++ b/helix-term/src/ui/popup.rs @@ -4,7 +4,6 @@ use tui::{ buffer::Buffer as Surface, layout::Rect, style::{Color, Style}, - widgets::{Block, Borders}, }; use std::borrow::Cow; @@ -113,11 +112,6 @@ impl Component for Popup { } fn render(&self, viewport: Rect, surface: &mut Surface, cx: &mut Context) { - use tui::{ - text::Text, - widgets::{Paragraph, Widget, Wrap}, - }; - cx.scroll = Some(self.scroll); let position = self