mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.2119: remove dead-condition in ex_class
Problem: remove dead-condition in ex_class() Solution: remove the extra condition The variable is_class must be true once we reach the ,---- | else if (has_static) `---- in line 1750, because we break out earlier if is_class is false in line 1598 of vim9class.c. And once 'has_static = TRUE', we must be in a class and there fore is_class is true. Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2119,
|
||||||
/**/
|
/**/
|
||||||
2118,
|
2118,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -1761,7 +1761,7 @@ early_ret:
|
|||||||
|
|
||||||
if (parse_member(eap, line, varname, has_public,
|
if (parse_member(eap, line, varname, has_public,
|
||||||
&varname_end, &has_type, &type_list, &type,
|
&varname_end, &has_type, &type_list, &type,
|
||||||
is_class ? &init_expr : NULL) == FAIL)
|
&init_expr) == FAIL)
|
||||||
break;
|
break;
|
||||||
if (is_reserved_varname(varname, varname_end))
|
if (is_reserved_varname(varname, varname_end))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user