diff src/vim9expr.c @ 33387:577ef266309d v9.0.1952

patch 9.0.1952: Vim9: unused static field Commit: https://github.com/vim/vim/commit/5a05d374d30577ee195e87e7929062ab1a0a076a Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Fri Sep 29 19:43:11 2023 +0200 patch 9.0.1952: Vim9: unused static field Problem: Vim9: unused static field Solution: remove it and simplify code closes: #13220 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author Christian Brabandt <cb@256bit.org>
date Fri, 29 Sep 2023 19:45:06 +0200
parents 41b50abddeea
children 4a62e78803db
line wrap: on
line diff
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -413,9 +413,8 @@ compile_class_object_index(cctx_T *cctx,
 
 	    *arg = name_end;
 	    if (cl->class_flags & (CLASS_INTERFACE | CLASS_EXTENDED))
-		return generate_GET_ITF_MEMBER(cctx, cl, m_idx, m->ocm_type,
-									FALSE);
-	    return generate_GET_OBJ_MEMBER(cctx, m_idx, m->ocm_type, FALSE);
+		return generate_GET_ITF_MEMBER(cctx, cl, m_idx, m->ocm_type);
+	    return generate_GET_OBJ_MEMBER(cctx, m_idx, m->ocm_type);
 	}
 
 	// Could be a function reference: "obj.Func".