diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 5e9235e0a..e823ef17e 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -513,7 +513,6 @@ maybe_t tokenizer_t::next() { this->buff += 2; } else { result.emplace(token_type_t::pipe); - result->redirected_fd = 1; result->offset = start_pos; result->length = 1; this->buff++; @@ -531,7 +530,6 @@ maybe_t tokenizer_t::next() { } result.emplace(redir_or_pipe->type); result->offset = start_pos; - result->redirected_fd = redir_or_pipe->fd; result->length = redir_or_pipe->consumed; this->buff += redir_or_pipe->consumed; break; @@ -553,7 +551,6 @@ maybe_t tokenizer_t::next() { error_location); } result.emplace(redir_or_pipe->type); - result->redirected_fd = redir_or_pipe->fd; result->offset = start_pos; result->length = redir_or_pipe->consumed; this->buff += redir_or_pipe->consumed; diff --git a/src/tokenizer.h b/src/tokenizer.h index 35b3aeb3e..dc834365a 100644 --- a/src/tokenizer.h +++ b/src/tokenizer.h @@ -71,9 +71,6 @@ struct tok_t { // Length of the token. size_t length{0}; - // If the token represents a redirection, the redirected fd. - maybe_t redirected_fd{}; - // If an error, this is the error code. tokenizer_error_t error{tokenizer_error_t::none};