Skip to content

Commit

Permalink
patch 9.0.1154: Coverity warns for dead code
Browse files Browse the repository at this point in the history
Problem:    Coverity warns for dead code.
Solution:   Remove condition that is always true.
  • Loading branch information
brammool committed Jan 7, 2023
1 parent 7d4d87b commit 2c01131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1154,
/**/
1153,
/**/
Expand Down
3 changes: 1 addition & 2 deletions src/vim9class.c
Expand Up @@ -681,8 +681,7 @@ ex_class(exarg_T *eap)
garray_T lines_to_free;
ga_init2(&lines_to_free, sizeof(char_u *), 50);

ufunc_T *nf = define_function(&fea, NULL, &lines_to_free,
is_class ? CF_CLASS : CF_INTERFACE);
ufunc_T *nf = define_function(&fea, NULL, &lines_to_free, CF_CLASS);

ga_clear_strings(&lines_to_free);
vim_free(fga.ga_data);
Expand Down

0 comments on commit 2c01131

Please sign in to comment.