Remove tok_t::redirected_fd

This wasn't used for anything.
This commit is contained in:
ridiculousfish
2019-10-13 23:04:18 -07:00
parent 1a65e18ba8
commit c160492d42
2 changed files with 0 additions and 6 deletions

View File

@@ -513,7 +513,6 @@ maybe_t<tok_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<tok_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<tok_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;

View File

@@ -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<int> redirected_fd{};
// If an error, this is the error code.
tokenizer_error_t error{tokenizer_error_t::none};