aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-11-11 11:43:24 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-11-18 07:56:58 -0300
commit17a4bfe007477d3243bcde5209321625fa7f5c5f (patch)
tree9b1c352a6cb73fef67f7425efe4871f5e5df8f21 /src/nvim/api/vim.c
parent375db3b19ac7d5e956af83660bdd7472de50f70c (diff)
downloadrneovim-17a4bfe007477d3243bcde5209321625fa7f5c5f.tar.gz
rneovim-17a4bfe007477d3243bcde5209321625fa7f5c5f.tar.bz2
rneovim-17a4bfe007477d3243bcde5209321625fa7f5c5f.zip
Remove os/provider.{c,h} and all of its references
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c17
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;