diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-08-22 17:48:57 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2017-01-25 11:56:28 +0100 |
commit | 4432ac28c118622c2994440b5be3bff0bc77cc83 (patch) | |
tree | c822040351ef33a22655afe38966d1a2121d2e61 /lib | |
parent | a198f78edcae91366cbd75df7539116ccb85adec (diff) | |
download | otp-4432ac28c118622c2994440b5be3bff0bc77cc83.tar.gz otp-4432ac28c118622c2994440b5be3bff0bc77cc83.tar.bz2 otp-4432ac28c118622c2994440b5be3bff0bc77cc83.zip |
stdlib: Produce correct warning for erlang:hash/2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/stdlib/src/otp_internal.erl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl index f4257fb571..5bf77a5160 100644 --- a/lib/stdlib/src/otp_internal.erl +++ b/lib/stdlib/src/otp_internal.erl @@ -47,9 +47,6 @@ obsolete(Module, Name, Arity) -> obsolete_1(net, _, _) -> {deprecated, "module 'net' obsolete; use 'net_adm'"}; -obsolete_1(erlang, hash, 2) -> - {deprecated, {erlang, phash2, 2}}; - obsolete_1(erlang, now, 0) -> {deprecated, "Deprecated BIF. See the \"Time and Time Correction in Erlang\" " @@ -553,6 +550,13 @@ obsolete_1(overload, _, _) -> obsolete_1(rpc, safe_multi_server_call, A) when A =:= 2; A =:= 3 -> {removed, {rpc, multi_server_call, A}}; +%% Removed in OTP 20. + +obsolete_1(erlang, hash, 2) -> + {removed, {erlang, phash2, 2}, "20.0"}; + +%% not obsolete + obsolete_1(_, _, _) -> no. |