diff options
author | Björn-Egil Dahlberg <[email protected]> | 2017-01-26 10:28:00 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2017-01-26 10:28:00 +0100 |
commit | 9153f7a734ddd9ca47b339cb19b8d44ed79ade0f (patch) | |
tree | 85c772b0531ce7e25da33ead6da3a72913828754 /erts/doc/src | |
parent | 7ac0749866500a4de95a00492df31127df78c2be (diff) | |
parent | 52097fab56edbbd8c6f8a57ec3b3f33aa60c5bb9 (diff) | |
download | otp-9153f7a734ddd9ca47b339cb19b8d44ed79ade0f.tar.gz otp-9153f7a734ddd9ca47b339cb19b8d44ed79ade0f.tar.bz2 otp-9153f7a734ddd9ca47b339cb19b8d44ed79ade0f.zip |
Merge branch 'egil/erts/remove-broken-hash/OTP-13827'
* egil/erts/remove-broken-hash/OTP-13827:
Update test cases for erlang:hash/2 removal
mnesia: Remove mnesia_frag_old_hash hash module
stdlib: Produce correct warning for erlang:hash/2
erts: Remove erlang:hash/2 from documentation
erts: Remove broken hash from Erlang
Diffstat (limited to 'erts/doc/src')
-rw-r--r-- | erts/doc/src/erlang.xml | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index 7815bfa510..2859f22bf4 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -1955,26 +1955,6 @@ os_prompt%</pre> </func> <func> - <name name="hash" arity="2"/> - <fsummary>Hash function (deprecated).</fsummary> - <desc> - <p>Returns a hash value for <c><anno>Term</anno></c> within the range - <c>1..<anno>Range</anno></c>. The maximum range is 1..2^27-1.</p> - <warning> - <p><em>This BIF is deprecated, as the hash value can differ on - different architectures.</em> The hash values for integer - terms > 2^27 and large binaries are - poor. The BIF is retained for backward compatibility - reasons (it can have been used to hash records into a file), - but all new code is to use one of the BIFs - <seealso marker="#phash/2"><c>erlang:phash/2</c></seealso> or - <seealso marker="#phash2/1"><c>erlang:phash2/1,2</c></seealso> - instead.</p> - </warning> - </desc> - </func> - - <func> <name name="hd" arity="1"/> <fsummary>Head of a list.</fsummary> <desc> @@ -3818,9 +3798,6 @@ RealSystem = system + MissedSystem</code> <c><anno>Term</anno></c> within the range <c>1..<anno>Range</anno></c>. The maximum value for <c><anno>Range</anno></c> is 2^32.</p> - <p>This BIF can be used instead of the old deprecated BIF - <c>erlang:hash/2</c>, as it calculates better hashes for - all data types, but consider using <c>phash2/1,2</c> instead.</p> </desc> </func> |