aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-04-17 13:34:05 +0200
committerRichard Carlsson <[email protected]>2018-05-04 10:22:36 +0200
commit4bd05f39900bce0167916d90e3352667b586c279 (patch)
tree5225419f45e597a8f40bab41dedec0feea2c1729
parente7a3bf9c385ac6df2209c6f7c92543a3dd7f6497 (diff)
downloadotp-4bd05f39900bce0167916d90e3352667b586c279.tar.gz
otp-4bd05f39900bce0167916d90e3352667b586c279.tar.bz2
otp-4bd05f39900bce0167916d90e3352667b586c279.zip
Remove lib:send/2 and lib:sendw/2
-rw-r--r--lib/stdlib/doc/src/lib.xml24
-rw-r--r--lib/stdlib/src/lib.erl19
2 files changed, 1 insertions, 42 deletions
diff --git a/lib/stdlib/doc/src/lib.xml b/lib/stdlib/doc/src/lib.xml
index 7aabb4bea8..e8c11ab816 100644
--- a/lib/stdlib/doc/src/lib.xml
+++ b/lib/stdlib/doc/src/lib.xml
@@ -65,30 +65,6 @@
</desc>
</func>
- <func>
- <name name="send" arity="2"/>
- <fsummary>Send a message.</fsummary>
- <desc>
- <p>Makes it possible to send a message using the <c>apply/3</c> BIF.</p>
- </desc>
- </func>
-
- <func>
- <name name="sendw" arity="2"/>
- <fsummary>Send a message and wait for an answer.</fsummary>
- <desc>
- <p>As <seealso marker="#send/2"><c>send/2</c></seealso>,
- but waits for an answer. It is implemented as follows:</p>
- <code type="none">
-sendw(To, Msg) ->
- To ! {self(),Msg},
- receive
- Reply -> Reply
- end.</code>
- <p>The returned message is not necessarily a reply to the sent
- message.</p>
- </desc>
- </func>
</funcs>
</erlref>
diff --git a/lib/stdlib/src/lib.erl b/lib/stdlib/src/lib.erl
index 72ca7dab0a..cecb37ec36 100644
--- a/lib/stdlib/src/lib.erl
+++ b/lib/stdlib/src/lib.erl
@@ -19,8 +19,7 @@
%%
-module(lib).
--export([flush_receive/0, error_message/2, progname/0, send/2,
- sendw/2, eval_str/1]).
+-export([flush_receive/0, error_message/2, progname/0, eval_str/1]).
-export([extended_parse_exprs/1, extended_parse_term/1,
subst_values_for_vars/2]).
@@ -62,22 +61,6 @@ progname() ->
no_prog_name
end.
--spec send(To, Msg) -> Msg when
- To :: pid() | atom() | {atom(), node()},
- Msg :: term().
-
-send(To, Msg) -> To ! Msg.
-
--spec sendw(To, Msg) -> term() when
- To :: pid() | atom() | {atom(), node()},
- Msg :: term().
-
-sendw(To, Msg) ->
- To ! {self(), Msg},
- receive
- Reply -> Reply
- end.
-
%% eval_str(InStr) -> {ok, OutStr} | {error, ErrStr'}
%% InStr must represent a body
%% Note: If InStr is a binary it has to be a Latin-1 string.