Skip to content

Commit fc1806b

Browse files
committed
Remove new codes
1 parent 0b10e84 commit fc1806b

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/elements/command/simple.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ use crate::elements::word::Word;
1212
use crate::utils::exit;
1313
use nix::unistd::Pid;
1414

15-
#[derive(Debug, Clone)]
16-
enum SubsArgType {
17-
Subs(Box<Substitution>), //clippyの指示でBoxに
18-
Other(Word),
19-
}
20-
2115
#[derive(Debug, Default, Clone)]
2216
pub struct SimpleCommand {
2317
text: String,
@@ -26,8 +20,6 @@ pub struct SimpleCommand {
2620
args: Vec<String>,
2721
redirects: Vec<Redirect>,
2822
force_fork: bool,
29-
substitutions_as_args: Vec<SubsArgType>,
30-
command_name: String,
3123
}
3224

3325
impl Command for SimpleCommand {

src/elements/command/simple/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::elements::command;
77
use crate::elements::substitution::Substitution;
88
use crate::elements::word::Word;
99
use crate::utils;
10-
use super::{SimpleCommand, SubsArgType};
10+
use super::SimpleCommand;
1111

1212
impl SimpleCommand {
1313
pub fn eat_substitution(&mut self, feeder: &mut Feeder, core: &mut ShellCore)

0 commit comments

Comments
 (0)