mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Remove tok_t::redirected_fd
This wasn't used for anything.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user