aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_hashmap.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-02-19 16:25:03 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-12 19:15:26 +0100
commit9cfaa729d7319ede30f62ffaaf82eb10fbaf8a60 (patch)
treeb08c2cc5a185e7f2f203f3150543fd1a385db6df /erts/emulator/beam/erl_hashmap.c
parent7a12c43da25e3dcad54212f538ebae3dc13f5c2e (diff)
downloadotp-9cfaa729d7319ede30f62ffaaf82eb10fbaf8a60.tar.gz
otp-9cfaa729d7319ede30f62ffaaf82eb10fbaf8a60.tar.bz2
otp-9cfaa729d7319ede30f62ffaaf82eb10fbaf8a60.zip
erts: Move hashmap:size/1 to maps
Diffstat (limited to 'erts/emulator/beam/erl_hashmap.c')
-rw-r--r--erts/emulator/beam/erl_hashmap.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/erts/emulator/beam/erl_hashmap.c b/erts/emulator/beam/erl_hashmap.c
index 5646820ae1..3f6e12cdd8 100644
--- a/erts/emulator/beam/erl_hashmap.c
+++ b/erts/emulator/beam/erl_hashmap.c
@@ -200,20 +200,6 @@ BIF_RETTYPE hashmap_remove_2(BIF_ALIST_2) {
}
/* hashmap:size/1 */
-BIF_RETTYPE hashmap_size_1(BIF_ALIST_1) {
- if (is_hashmap(BIF_ARG_1)) {
- Eterm *head, *hp, res;
- Uint size, hsz=0;
-
- head = hashmap_val(BIF_ARG_1);
- size = head[1];
- (void) erts_bld_uint(NULL, &hsz, size);
- hp = HAlloc(BIF_P, hsz);
- res = erts_bld_uint(&hp, NULL, size);
- BIF_RET(res);
- }
- BIF_ERROR(BIF_P, BADARG);
-}
/* erlang:is_hashmap/1 */