aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/bif.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-08-01 14:35:04 +0200
committerBjörn-Egil Dahlberg <[email protected]>2017-01-25 11:56:28 +0100
commitc5d9b970fb5b3a7143ec8bb2e8194514b5b04e25 (patch)
treea217b667a48e40a621fe7bc967e8ce01f198235d /erts/emulator/beam/bif.c
parent7a6d7efda47e96679cb5bf4f443b33c9b74cadbd (diff)
downloadotp-c5d9b970fb5b3a7143ec8bb2e8194514b5b04e25.tar.gz
otp-c5d9b970fb5b3a7143ec8bb2e8194514b5b04e25.tar.bz2
otp-c5d9b970fb5b3a7143ec8bb2e8194514b5b04e25.zip
erts: Remove broken hash from Erlang
erlang:hash/2 has been deprecated for a while, time to remove it.
Diffstat (limited to 'erts/emulator/beam/bif.c')
-rw-r--r--erts/emulator/beam/bif.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c
index 65c370c55b..a3acf87000 100644
--- a/erts/emulator/beam/bif.c
+++ b/erts/emulator/beam/bif.c
@@ -4723,25 +4723,6 @@ BIF_RETTYPE system_flag_2(BIF_ALIST_2)
/**********************************************************************/
-BIF_RETTYPE hash_2(BIF_ALIST_2)
-{
- Uint32 hash;
- Sint range;
-
- if (is_not_small(BIF_ARG_2)) {
- BIF_ERROR(BIF_P, BADARG);
- }
- if ((range = signed_val(BIF_ARG_2)) <= 0) { /* [1..MAX_SMALL] */
- BIF_ERROR(BIF_P, BADARG);
- }
-#if defined(ARCH_64)
- if (range > ((1L << 27) - 1))
- BIF_ERROR(BIF_P, BADARG);
-#endif
- hash = make_broken_hash(BIF_ARG_1);
- BIF_RET(make_small(1 + (hash % range))); /* [1..range] */
-}
-
BIF_RETTYPE phash_2(BIF_ALIST_2)
{
Uint32 hash;