forked from extern/nushell
Remove unused FlatShape
s And
/Or
(#14476)
# Description This removes the need for the `shape_and` and `shape_or` entries in the themes. We did not color those underlying FlatShapes or operators differently. Closes #14372 # User-Facing Changes Our theme handling currently doesn't reject invalid entries so should not cause an error. The non-functional nature was already documented.
This commit is contained in:
committed by
GitHub
parent
6bc695f251
commit
acca56f77c
@ -11,7 +11,6 @@ use std::fmt::{Display, Formatter, Result};
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Ord, Clone, PartialOrd)]
|
||||
pub enum FlatShape {
|
||||
And,
|
||||
Binary,
|
||||
Block,
|
||||
Bool,
|
||||
@ -36,7 +35,6 @@ pub enum FlatShape {
|
||||
MatchPattern,
|
||||
Nothing,
|
||||
Operator,
|
||||
Or,
|
||||
Pipe,
|
||||
Range,
|
||||
RawString,
|
||||
@ -53,7 +51,6 @@ pub enum FlatShape {
|
||||
impl FlatShape {
|
||||
pub fn as_str(&self) -> &str {
|
||||
match self {
|
||||
FlatShape::And => "shape_and",
|
||||
FlatShape::Binary => "shape_binary",
|
||||
FlatShape::Block => "shape_block",
|
||||
FlatShape::Bool => "shape_bool",
|
||||
@ -78,7 +75,6 @@ impl FlatShape {
|
||||
FlatShape::MatchPattern => "shape_match_pattern",
|
||||
FlatShape::Nothing => "shape_nothing",
|
||||
FlatShape::Operator => "shape_operator",
|
||||
FlatShape::Or => "shape_or",
|
||||
FlatShape::Pipe => "shape_pipe",
|
||||
FlatShape::Range => "shape_range",
|
||||
FlatShape::RawString => "shape_raw_string",
|
||||
|
Reference in New Issue
Block a user