mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 23:21:15 -03:00
ast: Remove unused variable
This commit is contained in:
@@ -1135,7 +1135,6 @@ class ast_t::populator_t {
|
||||
const auto &peek = peek_token();
|
||||
|
||||
// Special error reporting for keyword_t<kw_end>.
|
||||
bool specially_handled = false;
|
||||
std::array<parse_keyword_t, sizeof...(KWs)> allowed = {{KWs...}};
|
||||
if (allowed.size() == 1 && allowed[0] == parse_keyword_t::kw_end) {
|
||||
assert(!visit_stack_.empty() && "Visit stack should not be empty");
|
||||
@@ -1147,11 +1146,9 @@ class ast_t::populator_t {
|
||||
L"Missing end to balance this %ls", kw_name);
|
||||
}
|
||||
}
|
||||
if (!specially_handled) {
|
||||
parse_error(peek, parse_error_generic, L"Expected %ls, but found %ls",
|
||||
keywords_user_presentable_description({KWs...}).c_str(),
|
||||
peek.user_presentable_description().c_str());
|
||||
}
|
||||
parse_error(peek, parse_error_generic, L"Expected %ls, but found %ls",
|
||||
keywords_user_presentable_description({KWs...}).c_str(),
|
||||
peek.user_presentable_description().c_str());
|
||||
return;
|
||||
}
|
||||
parse_token_t tok = consume_any_token();
|
||||
|
||||
Reference in New Issue
Block a user