diff options
| author | denis <denismaximov98@gmail.com> | 2021-03-23 10:01:36 +0200 |
|---|---|---|
| committer | denis <denismaximov98@gmail.com> | 2021-03-23 10:01:36 +0200 |
| commit | 2913286d9e9cba3ea015ed168c1c44aeca29ca3f (patch) | |
| tree | c76117f7cf2459837a7cbf535aeabaeb4f2ae2f1 /src | |
| parent | wip: using Some(Color) in the BoundarySymbol now (diff) | |
| download | sl0ppij-2913286d9e9cba3ea015ed168c1c44aeca29ca3f.tar.gz sl0ppij-2913286d9e9cba3ea015ed168c1c44aeca29ca3f.tar.xz sl0ppij-2913286d9e9cba3ea015ed168c1c44aeca29ca3f.zip | |
wip: remove colored_borders
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/boundaries.rs | 2 | ||||
| -rw-r--r-- | src/client/panes/plugin_pane.rs | 5 | ||||
| -rw-r--r-- | src/client/tab.rs | 3 | ||||
| -rw-r--r-- | src/common/mod.rs | 1 |
4 files changed, 1 insertions, 10 deletions
diff --git a/src/client/boundaries.rs b/src/client/boundaries.rs index 74859b0f..85dfaa23 100644 --- a/src/client/boundaries.rs +++ b/src/client/boundaries.rs @@ -57,7 +57,7 @@ impl Display for BoundarySymbol { match self.invisible { true => write!(f, " "), false => match self.color { - Some(color) => write!(f, "{}", self.color.unwrap().paint(self.boundary_type)), + Some(_) => write!(f, "{}", self.color.unwrap().paint(self.boundary_type)), None => write!(f, "{}", self.boundary_type), }, } diff --git a/src/client/panes/plugin_pane.rs b/src/client/panes/plugin_pane.rs index 52e4c560..588cffd6 100644 --- a/src/client/panes/plugin_pane.rs +++ b/src/client/panes/plugin_pane.rs @@ -11,7 +11,6 @@ pub struct PluginPane { pub should_render: bool, pub selectable: bool, pub invisible_borders: bool, - pub colored_borders: bool, pub position_and_size: PositionAndSize, pub position_and_size_override: Option<PositionAndSize>, pub send_plugin_instructions: SenderWithContext<PluginInstruction>, @@ -29,7 +28,6 @@ impl PluginPane { should_render: true, selectable: true, invisible_borders: false, - colored_borders: false, position_and_size, position_and_size_override: None, send_plugin_instructions, @@ -190,7 +188,4 @@ impl Pane for PluginPane { fn invisible_borders(&self) -> bool { self.invisible_borders } - fn colored_borders(&self) -> bool { - self.colored_borders - } } diff --git a/src/client/tab.rs b/src/client/tab.rs index 6370daf0..5cb0fdce 100644 --- a/src/client/tab.rs +++ b/src/client/tab.rs @@ -179,9 +179,6 @@ pub trait Pane { fn invisible_borders(&self) -> bool { false } - fn colored_borders(&self) -> bool { - false - } } impl Tab { diff --git a/src/common/mod.rs b/src/common/mod.rs index d52b5a4c..7e52dde7 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -26,7 +26,6 @@ use wasmer::{ChainableNamedResolver, Instance, Module, Store, Value}; use wasmer_wasi::{Pipe, WasiState}; use crate::cli::CliArgs; -use crate::common::utils::logging::debug_log_to_file; use crate::layout::Layout; use command_is_executing::CommandIsExecuting; use errors::{AppContext, ContextType, ErrorContext, PluginContext, PtyContext, ScreenContext}; |
