Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Feb 18, 2024
1 parent 18634c1 commit 10c9d80
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/uu/env/src/split_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,6 @@ use crate::string_expander::StringExpander;
use crate::string_parser::StringParser;
use crate::variable_parser::VariableParser;

#[derive(Clone, Copy)]
pub enum State {
/// Within a delimiter.
Delimiter,
/// After backslash, but before starting word.
DelimiterBackslash,
/// Within an unquoted word.
Unquoted,
/// After backslash in an unquoted word.
UnquotedBackslash,
/// Within a single quoted word.
SingleQuoted,
/// After backslash inside a double quoted word.
SingleQuotedBackslash,
/// Within a double quoted word.
DoubleQuoted,
/// After backslash inside a double quoted word.
DoubleQuotedBackslash,
/// Inside a comment.
Comment,
}

const BACKSLASH: char = '\\';
const DOUBLE_QUOTES: char = '\"';
const SINGLE_QUOTES: char = '\'';
Expand Down

0 comments on commit 10c9d80

Please sign in to comment.