terminal/cells.rs: remove unused variables
parent
6f6f795fd5
commit
b946b61cf1
|
@ -184,7 +184,7 @@ impl Component for VSplit {
|
||||||
.map(Cell::ch)
|
.map(Cell::ch)
|
||||||
.unwrap_or_else(|| ' ');
|
.unwrap_or_else(|| ' ');
|
||||||
if let HORZ_BOUNDARY = c {
|
if let HORZ_BOUNDARY = c {
|
||||||
grid[(mid, get_y(upper_left) - 1)].set_ch(LIGHT_DOWN_AND_HORIZONTAL);
|
grid[(mid, get_y(upper_left) - 1)].set_ch(_LIGHT_DOWN_AND_HORIZONTAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ impl Component for VSplit {
|
||||||
.map(Cell::ch)
|
.map(Cell::ch)
|
||||||
.unwrap_or_else(|| ' ');
|
.unwrap_or_else(|| ' ');
|
||||||
if let HORZ_BOUNDARY = c {
|
if let HORZ_BOUNDARY = c {
|
||||||
grid[(mid, get_y(bottom_right) + 1)].set_ch(LIGHT_UP_AND_HORIZONTAL);
|
grid[(mid, get_y(bottom_right) + 1)].set_ch(_LIGHT_UP_AND_HORIZONTAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
context
|
context
|
||||||
|
|
|
@ -2372,28 +2372,16 @@ impl RowIterator {
|
||||||
pub use boundaries::create_box;
|
pub use boundaries::create_box;
|
||||||
pub mod boundaries {
|
pub mod boundaries {
|
||||||
use super::*;
|
use super::*;
|
||||||
/// The upper and lower boundary char.
|
|
||||||
pub(crate) const HORZ_BOUNDARY: char = '─';
|
pub(crate) const HORZ_BOUNDARY: char = '─';
|
||||||
/// The left and right boundary char.
|
|
||||||
pub(crate) const VERT_BOUNDARY: char = '│';
|
pub(crate) const VERT_BOUNDARY: char = '│';
|
||||||
|
|
||||||
/// The top-left corner
|
|
||||||
pub(crate) const _TOP_LEFT_CORNER: char = '┌';
|
pub(crate) const _TOP_LEFT_CORNER: char = '┌';
|
||||||
/// The top-right corner
|
|
||||||
pub(crate) const _TOP_RIGHT_CORNER: char = '┐';
|
pub(crate) const _TOP_RIGHT_CORNER: char = '┐';
|
||||||
/// The bottom-left corner
|
|
||||||
pub(crate) const _BOTTOM_LEFT_CORNER: char = '└';
|
pub(crate) const _BOTTOM_LEFT_CORNER: char = '└';
|
||||||
/// The bottom-right corner
|
|
||||||
pub(crate) const _BOTTOM_RIGHT_CORNER: char = '┘';
|
pub(crate) const _BOTTOM_RIGHT_CORNER: char = '┘';
|
||||||
|
|
||||||
pub(crate) const LIGHT_VERTICAL_AND_RIGHT: char = '├';
|
pub(crate) const LIGHT_VERTICAL_AND_RIGHT: char = '├';
|
||||||
|
|
||||||
pub(crate) const _LIGHT_VERTICAL_AND_LEFT: char = '┤';
|
pub(crate) const _LIGHT_VERTICAL_AND_LEFT: char = '┤';
|
||||||
|
pub(crate) const _LIGHT_DOWN_AND_HORIZONTAL: char = '┬';
|
||||||
pub(crate) const LIGHT_DOWN_AND_HORIZONTAL: char = '┬';
|
pub(crate) const _LIGHT_UP_AND_HORIZONTAL: char = '┴';
|
||||||
|
|
||||||
pub(crate) const LIGHT_UP_AND_HORIZONTAL: char = '┴';
|
|
||||||
|
|
||||||
pub(crate) const _DOUBLE_DOWN_AND_RIGHT: char = '╔';
|
pub(crate) const _DOUBLE_DOWN_AND_RIGHT: char = '╔';
|
||||||
pub(crate) const _DOUBLE_DOWN_AND_LEFT: char = '╗';
|
pub(crate) const _DOUBLE_DOWN_AND_LEFT: char = '╗';
|
||||||
pub(crate) const _DOUBLE_UP_AND_LEFT: char = '╝';
|
pub(crate) const _DOUBLE_UP_AND_LEFT: char = '╝';
|
||||||
|
|
Loading…
Reference in New Issue