]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.2119: remove dead-condition in ex_class v9.0.2119
authorChristian Brabandt <cb@256bit.org>
Sun, 19 Nov 2023 17:59:52 +0000 (18:59 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 21 Nov 2023 18:57:05 +0000 (19:57 +0100)
commit6b36645f07773d2b27c6662cd80a6567e07f75a0
tree690d8df3f6ac6128a88972e4b0fc8264d7d0005c
parenta5218a7330cb14ddd9afa323ab03f4334e6a77a0
patch 9.0.2119: remove dead-condition in ex_class

Problem:  remove dead-condition in ex_class()
Solution: remove the extra condition

The variable is_class must be true once we reach the

,----
| else if (has_static)
`----

in line 1750, because we break out earlier if is_class is false in line
1598 of vim9class.c. And once 'has_static = TRUE', we must be in a
class and there fore is_class is true.

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/version.c
src/vim9class.c