diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-07-15 19:55:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-15 19:55:53 +0200 |
commit | dfe79b67a5621ebd779a40a87a85304ffd89a5af (patch) | |
tree | fc6d5d8082429faec13207bc11f2acb7d9b25c6b /src/nvim/msgpack_rpc/helpers.c | |
parent | c230ef24a2b5bcd21902ca7fd89ff9ecd455638f (diff) | |
parent | 099718ae6d57239164d4348e6c7576edf7a2ebb7 (diff) | |
download | rneovim-dfe79b67a5621ebd779a40a87a85304ffd89a5af.tar.gz rneovim-dfe79b67a5621ebd779a40a87a85304ffd89a5af.tar.bz2 rneovim-dfe79b67a5621ebd779a40a87a85304ffd89a5af.zip |
Merge pull request #8651 from MichaHoffmann/feature_refactor_channel
channel.c: refactor spaghetti code
Diffstat (limited to 'src/nvim/msgpack_rpc/helpers.c')
-rw-r--r-- | src/nvim/msgpack_rpc/helpers.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nvim/msgpack_rpc/helpers.c b/src/nvim/msgpack_rpc/helpers.c index e18c4472b5..19cc31f6a6 100644 --- a/src/nvim/msgpack_rpc/helpers.c +++ b/src/nvim/msgpack_rpc/helpers.c @@ -488,25 +488,6 @@ void msgpack_rpc_from_dictionary(Dictionary result, msgpack_packer *res) } } -/// Handler executed when an invalid method name is passed -Object msgpack_rpc_handle_missing_method(uint64_t channel_id, - Array args, - Error *error) -{ - api_set_error(error, kErrorTypeException, "Invalid method: %s", - args.size > 0 ? args.items[0].data.string.data : "?"); - return NIL; -} - -/// Handler executed when malformated arguments are passed -Object msgpack_rpc_handle_invalid_arguments(uint64_t channel_id, - Array args, - Error *error) -{ - api_set_error(error, kErrorTypeException, "Invalid method arguments"); - return NIL; -} - /// Serializes a msgpack-rpc request or notification(id == 0) void msgpack_rpc_serialize_request(uint64_t request_id, const String method, |