aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-04-17 13:35:48 +0200
committerRichard Carlsson <[email protected]>2018-05-04 10:22:36 +0200
commit3d2fa8b1a083d8eb9f9264982d8accceac37eea5 (patch)
tree5e85bf724f8b6dc749d419431a4d0c08a38e3be9
parent4bd05f39900bce0167916d90e3352667b586c279 (diff)
downloadotp-3d2fa8b1a083d8eb9f9264982d8accceac37eea5.tar.gz
otp-3d2fa8b1a083d8eb9f9264982d8accceac37eea5.tar.bz2
otp-3d2fa8b1a083d8eb9f9264982d8accceac37eea5.zip
Remove lib:flush_receive/0
-rw-r--r--lib/stdlib/doc/src/lib.xml8
-rw-r--r--lib/stdlib/src/lib.erl13
2 files changed, 1 insertions, 20 deletions
diff --git a/lib/stdlib/doc/src/lib.xml b/lib/stdlib/doc/src/lib.xml
index e8c11ab816..243c67c2ad 100644
--- a/lib/stdlib/doc/src/lib.xml
+++ b/lib/stdlib/doc/src/lib.xml
@@ -49,14 +49,6 @@
</func>
<func>
- <name name="flush_receive" arity="0"/>
- <fsummary>Flush messages.</fsummary>
- <desc>
- <p>Flushes the message buffer of the current process.</p>
- </desc>
- </func>
-
- <func>
<name name="progname" arity="0"/>
<fsummary>Return name of Erlang start script.</fsummary>
<desc>
diff --git a/lib/stdlib/src/lib.erl b/lib/stdlib/src/lib.erl
index cecb37ec36..e5f5db0a8f 100644
--- a/lib/stdlib/src/lib.erl
+++ b/lib/stdlib/src/lib.erl
@@ -19,7 +19,7 @@
%%
-module(lib).
--export([flush_receive/0, error_message/2, progname/0, eval_str/1]).
+-export([error_message/2, progname/0, eval_str/1]).
-export([extended_parse_exprs/1, extended_parse_term/1,
subst_values_for_vars/2]).
@@ -28,17 +28,6 @@
format_stacktrace/4, format_stacktrace/5,
format_call/4, format_call/5, format_fun/1, format_fun/2]).
--spec flush_receive() -> 'ok'.
-
-flush_receive() ->
- receive
- _Any ->
- flush_receive()
- after
- 0 ->
- ok
- end.
-
%%
%% Functions for doing standard system format i/o.
%%