From 9016253a51a8c6aeae766d09b7e8447fd5855231 Mon Sep 17 00:00:00 2001 From: denis Date: Sat, 20 Mar 2021 17:52:45 +0200 Subject: [PATCH] wip: cleanup --- src/client/boundaries.rs | 2 +- src/client/tab.rs | 3 +-- src/common/mod.rs | 1 - src/common/screen.rs | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/client/boundaries.rs b/src/client/boundaries.rs index a5f5965bc..2109d4b41 100644 --- a/src/client/boundaries.rs +++ b/src/client/boundaries.rs @@ -1,5 +1,5 @@ use crate::{common::input::handler::InputMode, tab::Pane}; -use ansi_term::Colour::{self, Fixed}; +use ansi_term::Colour; use std::collections::HashMap; use std::fmt::{Display, Error, Formatter}; diff --git a/src/client/tab.rs b/src/client/tab.rs index dad75e304..67c4540be 100644 --- a/src/client/tab.rs +++ b/src/client/tab.rs @@ -1,8 +1,7 @@ //! `Tab`s holds multiple panes. It tracks their coordinates (x/y) and size, //! as well as how they should be resized -use crate::common::input::handler::get_help; -use crate::common::{input::handler::InputMode, AppInstruction, AppState, SenderWithContext}; +use crate::common::{input::handler::InputMode, AppInstruction, SenderWithContext}; use crate::layout::Layout; use crate::panes::{PaneId, PositionAndSize, TerminalPane}; use crate::pty_bus::{PtyInstruction, VteEvent}; diff --git a/src/common/mod.rs b/src/common/mod.rs index 87f56567a..3b596f423 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -427,7 +427,6 @@ pub fn start(mut os_input: Box, opts: CliArgs) { screen.update_active_tab_name(c); } ScreenInstruction::ChangeInputMode(input_mode) => { - debug_log_to_file(format!("{} {:?}", "switched mode to: ".to_string(), input_mode)); screen.change_input_mode(input_mode); } ScreenInstruction::Quit => { diff --git a/src/common/screen.rs b/src/common/screen.rs index a675ee07b..eb8e3eb25 100644 --- a/src/common/screen.rs +++ b/src/common/screen.rs @@ -5,8 +5,6 @@ use std::os::unix::io::RawFd; use std::str; use std::sync::mpsc::Receiver; -use wasmer::wasmparser::WasmFuncType; - use super::{AppInstruction, SenderWithContext, input::handler::InputMode}; use crate::os_input_output::OsApi; use crate::panes::PositionAndSize;