aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-02-23 16:32:59 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-12 19:15:28 +0100
commita80156026638b6605b636c16fa59e8206ff7635e (patch)
treeb6ea7114874a0899f6444e65f0e89087ad7c997d
parent9f0fccbd5e45cd11aecfd782c0dbc121c3895af6 (diff)
downloadotp-a80156026638b6605b636c16fa59e8206ff7635e.tar.gz
otp-a80156026638b6605b636c16fa59e8206ff7635e.tar.bz2
otp-a80156026638b6605b636c16fa59e8206ff7635e.zip
erts: Remove hashmap:new/0
-rw-r--r--erts/emulator/beam/bif.tab1
-rw-r--r--erts/emulator/beam/erl_hashmap.c13
2 files changed, 0 insertions, 14 deletions
diff --git a/erts/emulator/beam/bif.tab b/erts/emulator/beam/bif.tab
index 7e92e58cab..e9c5e83203 100644
--- a/erts/emulator/beam/bif.tab
+++ b/erts/emulator/beam/bif.tab
@@ -616,7 +616,6 @@ bif erlang:get_keys/0
# Hash Array Mappped Trie
bif hashmap:info/1
-bif hashmap:new/0
bif hashmap:merge/2
#
diff --git a/erts/emulator/beam/erl_hashmap.c b/erts/emulator/beam/erl_hashmap.c
index 06012950e1..29a14a9f20 100644
--- a/erts/emulator/beam/erl_hashmap.c
+++ b/erts/emulator/beam/erl_hashmap.c
@@ -66,19 +66,6 @@ static Eterm hashmap_bld_tuple_uint(Uint **hpp, Uint *szp, Uint n, Uint nums[]);
/* hashmap:new/0 */
-BIF_RETTYPE hashmap_new_0(BIF_ALIST_0) {
- Eterm* hp;
- hashmap_head_t *head;
-
- hp = HAlloc(BIF_P, HAMT_HEAD_EMPTY_SZ);
- head = (hashmap_head_t *) hp;
-
- head->thing_word = MAP_HEADER_HAMT_HEAD_BITMAP(0);
- head->size = 0;
-
- BIF_RET(make_hashmap(head));
-}
-
/* hashmap:put/3 */
/* hashmap:update/3 */