]> granicus.if.org Git - vim/commitdiff
patch 9.0.1154: Coverity warns for dead code v9.0.1154
authorBram Moolenaar <Bram@vim.org>
Sat, 7 Jan 2023 10:51:30 +0000 (10:51 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 7 Jan 2023 10:51:30 +0000 (10:51 +0000)
Problem:    Coverity warns for dead code.
Solution:   Remove condition that is always true.

src/version.c
src/vim9class.c

index 02841186c91b30fbe5303f13c14fabc2c7993fd5..4352c83b21647326139531d359feee82a5c8b9bf 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1154,
 /**/
     1153,
 /**/
index fd0a1223bba5bdb5698da3159a9937f709da751a..92e3c6316b69691faa6fe5185554469930833137 100644 (file)
@@ -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);