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>
diff --git a/src/vim9expr.c b/src/vim9expr.c
index 7abd0a4..5a302d6 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -413,9 +413,8 @@
*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".