aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJakub Łuczyński <doubleloop@o2.pl>2020-02-11 15:55:21 +0100
committerJakub Łuczyński <doubleloop@o2.pl>2020-02-13 14:11:50 +0100
commitc7ef0e8d2d6fd033f89441839dde4d1d2588a940 (patch)
treebf9600e97c18da0460803a223b064f14370e304a /src/nvim/eval.c
parent3c413f15238d3c48c0606d661841477cb2c9ed5c (diff)
downloadrneovim-c7ef0e8d2d6fd033f89441839dde4d1d2588a940.tar.gz
rneovim-c7ef0e8d2d6fd033f89441839dde4d1d2588a940.tar.bz2
rneovim-c7ef0e8d2d6fd033f89441839dde4d1d2588a940.zip
fix: moved some static inline function
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 6f9dcd48df..e3b82a8b89 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -9583,24 +9583,6 @@ char *autoload_name(const char *const name, const size_t name_len)
return scriptname;
}
-
-
-/// Check whether funccall is still referenced outside
-///
-/// It is supposed to be referenced if either it is referenced itself or if l:,
-/// a: or a:000 are referenced as all these are statically allocated within
-/// funccall structure.
-static inline bool fc_referenced(const funccall_T *const fc)
- FUNC_ATTR_ALWAYS_INLINE FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
- FUNC_ATTR_NONNULL_ALL
-{
- return ((fc->l_varlist.lv_refcount // NOLINT(runtime/deprecated)
- != DO_NOT_FREE_CNT)
- || fc->l_vars.dv_refcount != DO_NOT_FREE_CNT
- || fc->l_avars.dv_refcount != DO_NOT_FREE_CNT
- || fc->fc_refcount > 0);
-}
-
/*
* Called when starting to read a function line.
* "sourcing_lnum" must be correct!