From 10c9d809f1a4e7a24e90f5d37e3318f8e199d6c6 Mon Sep 17 00:00:00 2001 From: Ulrich Hornung Date: Sun, 18 Feb 2024 17:14:45 +0100 Subject: [PATCH] cleanup --- src/uu/env/src/split_iterator.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/uu/env/src/split_iterator.rs b/src/uu/env/src/split_iterator.rs index f444e69addb..5c8aed69b29 100644 --- a/src/uu/env/src/split_iterator.rs +++ b/src/uu/env/src/split_iterator.rs @@ -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 = '\'';