Mercurial > vim
changeset 30088:4eac06fb0191
Revert part of patch merged twice
Commit: https://github.com/vim/vim/commit/8f7116caddc6f0725cf1211407d97645c4eb7b65
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 4 18:22:16 2022 +0100
Revert part of patch merged twice
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Sep 2022 19:30:02 +0200 |
parents | 02745db8a289 |
children | 0a50e536de81 |
files | src/vim9cmds.c |
diffstat | 1 files changed, 0 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vim9cmds.c +++ b/src/vim9cmds.c @@ -1706,27 +1706,6 @@ get_defer_var_idx(cctx_T *cctx) } /* - * Get the local variable index for deferred function calls. - * Reserve it when not done already. - * Returns zero for failure. - */ - int -get_defer_var_idx(cctx_T *cctx) -{ - dfunc_T *dfunc = ((dfunc_T *)def_functions.ga_data) - + cctx->ctx_ufunc->uf_dfunc_idx; - if (dfunc->df_defer_var_idx == 0) - { - lvar_T *lvar = reserve_local(cctx, (char_u *)"@defer@", 7, - TRUE, &t_list_any); - if (lvar == NULL) - return 0; - dfunc->df_defer_var_idx = lvar->lv_idx + 1; - } - return dfunc->df_defer_var_idx; -} - -/* * Compile "defer func(arg)". */ char_u *