From: Bram Moolenaar Date: Sat, 7 Jan 2023 10:51:30 +0000 (+0000) Subject: patch 9.0.1154: Coverity warns for dead code X-Git-Tag: v9.0.1154 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c01131c2a9d5455de603f646ba8a2be59282faf;p=vim patch 9.0.1154: Coverity warns for dead code Problem: Coverity warns for dead code. Solution: Remove condition that is always true. --- diff --git a/src/version.c b/src/version.c index 02841186c..4352c83b2 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1154, /**/ 1153, /**/ diff --git a/src/vim9class.c b/src/vim9class.c index fd0a1223b..92e3c6316 100644 --- a/src/vim9class.c +++ b/src/vim9class.c @@ -681,8 +681,7 @@ early_ret: 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);