diff options
author | Björn Gustavsson <[email protected]> | 2016-04-04 13:43:41 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-04-04 13:43:41 +0200 |
commit | c038d673f70da8c82cf22a515592709a7fbbbcee (patch) | |
tree | 7fba68588798c878a859e776efbb4ef1097786d3 /lib/kernel | |
parent | e259b0317e710a70544777526d60964a830de1af (diff) | |
parent | 47f8db4e66950fe9d8c48e31e6230c4073cf5e70 (diff) | |
download | otp-c038d673f70da8c82cf22a515592709a7fbbbcee.tar.gz otp-c038d673f70da8c82cf22a515592709a7fbbbcee.tar.bz2 otp-c038d673f70da8c82cf22a515592709a7fbbbcee.zip |
Merge branch 'bjorn/kernel/remove-deprecated/OTP-13449'
* bjorn/kernel/remove-deprecated/OTP-13449:
rpc: Remove functions deprecated in R12B
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/doc/src/rpc.xml | 20 | ||||
-rw-r--r-- | lib/kernel/src/rpc.erl | 25 |
2 files changed, 0 insertions, 45 deletions
diff --git a/lib/kernel/doc/src/rpc.xml b/lib/kernel/doc/src/rpc.xml index 032b4fb0c3..be1641ffd9 100644 --- a/lib/kernel/doc/src/rpc.xml +++ b/lib/kernel/doc/src/rpc.xml @@ -347,26 +347,6 @@ </func> <func> - <name name="safe_multi_server_call" arity="2"/> - <name name="safe_multi_server_call" arity="3"/> - <fsummary>Interact with the servers on a number of nodes - (deprecated).</fsummary> - <desc> - <warning> - <p>Deprecated. Use - <seealso marker="#multi_server_call/2"><c>multi_server_call/2,3</c></seealso> - instead.</p> - </warning> - <p>In Erlang/OTP R6B and earlier releases, - <c>multi_server_call/2,3</c> could not handle the case - where the remote node exists, but there is no server called - <c><anno>Name</anno></c>. Instead, this function had to be used. In - Erlang/OTP R7B and later releases, however, the functions are - equivalent, except that this function is slightly slower.</p> - </desc> - </func> - - <func> <name name="sbcast" arity="2"/> <fsummary>Broadcast a message synchronously to a registered process on all nodes.</fsummary> diff --git a/lib/kernel/src/rpc.erl b/lib/kernel/src/rpc.erl index b9284487d2..0e1e3f070c 100644 --- a/lib/kernel/src/rpc.erl +++ b/lib/kernel/src/rpc.erl @@ -52,10 +52,6 @@ parallel_eval/1, pmap/3, pinfo/1, pinfo/2]). -%% Deprecated calls. --deprecated([{safe_multi_server_call,2},{safe_multi_server_call,3}]). --export([safe_multi_server_call/2,safe_multi_server_call/3]). - %% gen_server exports -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). @@ -591,27 +587,6 @@ multi_server_call(Nodes, Name, Msg) Monitors = send_nodes(Nodes, Name, Msg, []), rec_nodes(Name, Monitors). -%% Deprecated functions. Were only needed when communicating with R6 nodes. - --spec safe_multi_server_call(Name, Msg) -> {Replies, BadNodes} when - Name :: atom(), - Msg :: term(), - Replies :: [Reply :: term()], - BadNodes :: [node()]. - -safe_multi_server_call(Name, Msg) -> - multi_server_call(Name, Msg). - --spec safe_multi_server_call(Nodes, Name, Msg) -> {Replies, BadNodes} when - Nodes :: [node()], - Name :: atom(), - Msg :: term(), - Replies :: [Reply :: term()], - BadNodes :: [node()]. - -safe_multi_server_call(Nodes, Name, Msg) -> - multi_server_call(Nodes, Name, Msg). - rec_nodes(Name, Nodes) -> rec_nodes(Name, Nodes, [], []). |