Skip to content

Commit 768c5d3

Browse files
committed
refactor: remove now redundant variable
1 parent d560c5a commit 768c5d3

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

source/parse.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6189,8 +6189,6 @@ class parser
61896189
{
61906190
auto n = std::make_unique<function_type_node>( my_decl );
61916191

6192-
auto is_function_type_id = !my_decl;
6193-
61946192
// Parameters
61956193
auto parameters = parameter_declaration_list(false, is_named, false, false, is_type_id);
61966194
if (!parameters) {
@@ -6220,13 +6218,11 @@ class parser
62206218
}
62216219

62226220
if (
6223-
!is_function_type_id
6224-
&& (
6225-
n->is_move()
6226-
|| n->is_swap()
6227-
|| n->is_destructor()
6228-
)
6229-
) {
6221+
n->is_move()
6222+
|| n->is_swap()
6223+
|| n->is_destructor()
6224+
)
6225+
{
62306226
error( "(experimental restriction) Cpp2 currently does not allow a move, swap, or destructor function to be designated 'throws'" );
62316227
return {};
62326228
}

0 commit comments

Comments
 (0)