aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src/erlang.erl
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/preloaded/src/erlang.erl
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/preloaded/src/erlang.erl')
-rw-r--r--erts/preloaded/src/erlang.erl11
1 files changed, 2 insertions, 9 deletions
diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl
index 86ebb4dd4b..be7ceb928b 100644
--- a/erts/preloaded/src/erlang.erl
+++ b/erts/preloaded/src/erlang.erl
@@ -48,7 +48,7 @@
await_sched_wall_time_modifications/2,
gather_gc_info_result/1]).
--deprecated([hash/2, now/0]).
+-deprecated([now/0]).
%% Get rid of autoimports of spawn to avoid clashes with ourselves.
-compile({no_auto_import,[spawn_link/1]}).
@@ -116,7 +116,7 @@
-export([garbage_collect_message_area/0, get/0, get/1, get_keys/0, get_keys/1]).
-export([get_module_info/1, get_stacktrace/0, group_leader/0]).
-export([group_leader/2]).
--export([halt/0, halt/1, halt/2, hash/2,
+-export([halt/0, halt/1, halt/2,
has_prepared_code_on_load/1, hibernate/3]).
-export([insert_element/3]).
-export([integer_to_binary/1, integer_to_list/1]).
@@ -1028,13 +1028,6 @@ halt(Status) ->
halt(_Status, _Options) ->
erlang:nif_error(undefined).
-%% hash/2
--spec erlang:hash(Term, Range) -> pos_integer() when
- Term :: term(),
- Range :: pos_integer().
-hash(_Term, _Range) ->
- erlang:nif_error(undefined).
-
%% has_prepared_code_on_load/1
-spec erlang:has_prepared_code_on_load(PreparedCode) -> boolean() when
PreparedCode :: binary().