summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2017-06-28 16:22:21 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2017-06-28 16:22:21 +0200
commit2746bc1e919affd64bac85fbaf4e8f9f0cdf5e48 (patch)
treee5e6a4ca7baac1f60d88a8e7b88502e4e3d9a75d
parent4913aa0d9e149652e5a2a174ece1ddc6869f1735 (diff)
downloadrabbitmq-server-git-2746bc1e919affd64bac85fbaf4e8f9f0cdf5e48.tar.gz
rabbit_cli: Remove all rpc_call() clauses
They seem to be unused and rpc_call/7 calls rabbit_misc:rpc_call/7 which doesn't exist. Reported by xref. [#140125673]
-rw-r--r--src/rabbit_cli.erl22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/rabbit_cli.erl b/src/rabbit_cli.erl
index 374f1a9ab9..f9bc4683bc 100644
--- a/src/rabbit_cli.erl
+++ b/src/rabbit_cli.erl
@@ -18,8 +18,7 @@
-include("rabbit_cli.hrl").
-export([main/3, start_distribution/0, start_distribution/1,
- parse_arguments/4, mutually_exclusive_flags/3,
- rpc_call/4, rpc_call/5, rpc_call/7]).
+ parse_arguments/4, mutually_exclusive_flags/3]).
%%----------------------------------------------------------------------------
@@ -44,12 +43,6 @@
-spec mutually_exclusive_flags([{option_name(), option_value()}], term(), [{option_name(), term()}]) -> {ok, term()} | {error, string()}.
--spec rpc_call(node(), atom(), atom(), [any()]) -> any().
--spec rpc_call(node(), atom(), atom(), [any()], number()) -> any().
--spec rpc_call
- (node(), atom(), atom(), [any()], reference(), pid(), number()) ->
- any().
-
ensure_cli_distribution() ->
case start_distribution() of
{ok, _} ->
@@ -291,16 +284,3 @@ print_error(Format, Args) -> fmt_stderr("Error: " ++ Format, Args).
print_badrpc_diagnostics(Nodes) ->
fmt_stderr(rabbit_nodes:diagnostics(Nodes), []).
-
-%% If the server we are talking to has non-standard net_ticktime, and
-%% our connection lasts a while, we could get disconnected because of
-%% a timeout unless we set our ticktime to be the same. So let's do
-%% that.
-rpc_call(Node, Mod, Fun, Args) ->
- rabbit_misc:rpc_call(Node, Mod, Fun, Args).
-
-rpc_call(Node, Mod, Fun, Args, Timeout) ->
- rabbit_misc:rpc_call(Node, Mod, Fun, Args, Timeout).
-
-rpc_call(Node, Mod, Fun, Args, Ref, Pid, Timeout) ->
- rabbit_misc:rpc_call(Node, Mod, Fun, Args, Ref, Pid, Timeout).