wip: remove colored_borders

This commit is contained in:
denis 2021-03-23 10:01:36 +02:00
parent 2bc40e5402
commit 2913286d9e
4 changed files with 1 additions and 10 deletions

View File

@ -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),
},
}

View File

@ -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
}
}

View File

@ -179,9 +179,6 @@ pub trait Pane {
fn invisible_borders(&self) -> bool {
false
}
fn colored_borders(&self) -> bool {
false
}
}
impl Tab {

View File

@ -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};