refactor: remove FC_DEAD

It's for Vim9 script only.
This commit is contained in:
zeertzjq
2023-04-15 21:05:55 +08:00
parent c5ec823a14
commit 9770dcf96d
3 changed files with 10 additions and 11 deletions

View File

@@ -2368,8 +2368,8 @@ static list_T *get_script_local_funcs(scid_T sid)
// looking for functions with script ID "sid".
HASHTAB_ITER(functbl, hi, {
const ufunc_T *const fp = HI2UF(hi);
// Add active functions with script id == "sid"
if (!(fp->uf_flags & FC_DEAD) && (fp->uf_script_ctx.sc_sid == sid)) {
// Add functions with script id == "sid"
if (fp->uf_script_ctx.sc_sid == sid) {
const char *const name = fp->uf_name_exp != NULL ? fp->uf_name_exp : fp->uf_name;
tv_list_append_string(l, name, -1);
}