diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-12-05 23:31:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 23:31:18 +0100 |
commit | d76c10ef1d0ec8de62bce2abc89f39cfda0c041d (patch) | |
tree | 9e5c4f4f9f38bd68612fecc16d7e5a45ac047973 /src/nvim/api/tabpage.c | |
parent | 463cf74182de8d11fb5d5c8448a205b10c2faca6 (diff) | |
parent | b1ef6de6208354d4d1ef8f60e95abaec7e7257ed (diff) | |
download | rneovim-d76c10ef1d0ec8de62bce2abc89f39cfda0c041d.tar.gz rneovim-d76c10ef1d0ec8de62bce2abc89f39cfda0c041d.tar.bz2 rneovim-d76c10ef1d0ec8de62bce2abc89f39cfda0c041d.zip |
Merge pull request #13455 from bfredl/deprecated
api: move deprecated functions to separate files
Diffstat (limited to 'src/nvim/api/tabpage.c')
-rw-r--r-- | src/nvim/api/tabpage.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/nvim/api/tabpage.c b/src/nvim/api/tabpage.c index dd17bc03e5..5f727dbc38 100644 --- a/src/nvim/api/tabpage.c +++ b/src/nvim/api/tabpage.c @@ -97,48 +97,6 @@ void nvim_tabpage_del_var(Tabpage tabpage, String name, Error *err) dict_set_var(tab->tp_vars, name, NIL, true, false, err); } -/// Sets a tab-scoped (t:) variable -/// -/// @deprecated -/// -/// @param tabpage Tabpage handle, or 0 for current tabpage -/// @param name Variable name -/// @param value Variable value -/// @param[out] err Error details, if any -/// @return Old value or nil if there was no previous value. -/// -/// @warning It may return nil if there was no previous value -/// or if previous value was `v:null`. -Object tabpage_set_var(Tabpage tabpage, String name, Object value, Error *err) -{ - tabpage_T *tab = find_tab_by_handle(tabpage, err); - - if (!tab) { - return (Object) OBJECT_INIT; - } - - return dict_set_var(tab->tp_vars, name, value, false, true, err); -} - -/// Removes a tab-scoped (t:) variable -/// -/// @deprecated -/// -/// @param tabpage Tabpage handle, or 0 for current tabpage -/// @param name Variable name -/// @param[out] err Error details, if any -/// @return Old value -Object tabpage_del_var(Tabpage tabpage, String name, Error *err) -{ - tabpage_T *tab = find_tab_by_handle(tabpage, err); - - if (!tab) { - return (Object) OBJECT_INIT; - } - - return dict_set_var(tab->tp_vars, name, NIL, true, true, err); -} - /// Gets the current window in a tabpage /// /// @param tabpage Tabpage handle, or 0 for current tabpage |