diff options
author | ZyX <kp-pav@yandex.ru> | 2017-12-24 02:11:46 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-12-24 14:09:36 +0300 |
commit | 608c3d7baf2745b188bc42f9f45ad1bb188a4828 (patch) | |
tree | db4cd569824b9971a9831264571a0f9d16bf75d5 /src/nvim/eval/typval.c | |
parent | 6bf3dc77c484f757d37c22694e1278abc014278f (diff) | |
download | rneovim-608c3d7baf2745b188bc42f9f45ad1bb188a4828.tar.gz rneovim-608c3d7baf2745b188bc42f9f45ad1bb188a4828.tar.bz2 rneovim-608c3d7baf2745b188bc42f9f45ad1bb188a4828.zip |
eval/typval: Remove tv_list_item_free() as it is unused
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r-- | src/nvim/eval/typval.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index 751f1e7aec..a49c34e957 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -58,18 +58,6 @@ static listitem_T *tv_list_item_alloc(void) return xmalloc(sizeof(listitem_T)); } -/// Free a list item -/// -/// Also clears the value. Does not touch watchers. -/// -/// @param[out] item Item to free. -void tv_list_item_free(listitem_T *const item) - FUNC_ATTR_NONNULL_ALL -{ - tv_clear(TV_LIST_ITEM_TV(item)); - xfree(item); -} - /// Remove a list item from a List and free it /// /// Also clears the value. @@ -80,7 +68,8 @@ void tv_list_item_remove(list_T *const l, listitem_T *const item) FUNC_ATTR_NONNULL_ALL { tv_list_remove_items(l, item, item); - tv_list_item_free(item); + tv_clear(TV_LIST_ITEM_TV(item)); + xfree(item); } //{{{2 List watchers |