diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-18 15:57:42 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-18 15:57:42 -0300 |
commit | 9e37c1d3b6b9d0d35d7f7558d3efb555757278c0 (patch) | |
tree | abff58ba79dddfbf4d3667c7fdcf1642546f4c51 /src/nvim/api/vim.c | |
parent | a67fd6f21378bc01b41e5349abff2eb214f6c288 (diff) | |
parent | d971cb169184a1fa59e93a5216635261d8c47e11 (diff) | |
download | rneovim-9e37c1d3b6b9d0d35d7f7558d3efb555757278c0.tar.gz rneovim-9e37c1d3b6b9d0d35d7f7558d3efb555757278c0.tar.bz2 rneovim-9e37c1d3b6b9d0d35d7f7558d3efb555757278c0.zip |
Merge PR #1454 'Refactor plugin system'
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index b6bac1588a..addcbf62e9 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -11,7 +11,6 @@ #include "nvim/api/private/defs.h" #include "nvim/api/buffer.h" #include "nvim/msgpack_rpc/channel.h" -#include "nvim/os/provider.h" #include "nvim/vim.h" #include "nvim/buffer.h" #include "nvim/window.h" @@ -538,22 +537,6 @@ void vim_unsubscribe(uint64_t channel_id, String event) channel_unsubscribe(channel_id, e); } -/// Registers the channel as the provider for `feature`. This fails if -/// a provider for `feature` is already provided by another channel. -/// -/// @param channel_id The channel id -/// @param feature The feature name -/// @param[out] err Details of an error that may have occurred -void vim_register_provider(uint64_t channel_id, String feature, Error *err) -{ - char buf[METHOD_MAXLEN]; - xstrlcpy(buf, feature.data, sizeof(buf)); - - if (!provider_register(buf, channel_id)) { - api_set_error(err, Validation, _("Feature doesn't exist")); - } -} - Array vim_get_api_info(uint64_t channel_id) { Array rv = ARRAY_DICT_INIT; |