diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-10-25 22:29:02 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-10-25 22:33:40 +0200 |
commit | c8882ca7e75e2f085ec2e0943d5afa09efc9c8ca (patch) | |
tree | 19317872a166dc5bf3a0f50490281d8b4a2fc1b4 /src/nvim/api/private/helpers.c | |
parent | 09e96fe6096f07365eb65b51bb7f2fd0f1b043b0 (diff) | |
download | rneovim-c8882ca7e75e2f085ec2e0943d5afa09efc9c8ca.tar.gz rneovim-c8882ca7e75e2f085ec2e0943d5afa09efc9c8ca.tar.bz2 rneovim-c8882ca7e75e2f085ec2e0943d5afa09efc9c8ca.zip |
refactor(api): move extmark API to its own file
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index f1259c8a18..745681c3f8 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -1410,15 +1410,6 @@ ArrayOf(Dictionary) keymap_array(String mode, buf_T *buf) return mappings; } -// Is the Namespace in use? -bool ns_initialized(uint64_t ns) -{ - if (ns < 1) { - return false; - } - return ns < (uint64_t)next_namespace_id; -} - /// Gets the line and column of an extmark. /// /// Extmarks may be queried by position, name or even special names @@ -1607,18 +1598,6 @@ free_exit: return hl_msg; } -const char *describe_ns(NS ns_id) -{ - String name; - handle_T id; - map_foreach(&namespace_ids, name, id, { - if ((NS)id == ns_id && name.size) { - return name.data; - } - }) - return "(UNKNOWN PLUGIN)"; -} - bool api_dict_to_keydict(void *rv, field_hash hashy, Dictionary dict, Error *err) { for (size_t i = 0; i < dict.size; i++) { |