aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-12-06 14:14:07 +0100
committerBjörn Gustavsson <[email protected]>2012-12-06 14:14:07 +0100
commitca3b66e3d2c734e8715c7ed078e4fa9ae10462de (patch)
treecbb1f4a8d034b09813453ae9f20a4d5465249fc8 /erts/emulator/beam
parent5b40d5502f008f9c44bc4a3bd9037439e35ce0a7 (diff)
parent0b73bb47674574e3e449d780c5704b02b15a8e07 (diff)
downloadotp-ca3b66e3d2c734e8715c7ed078e4fa9ae10462de.tar.gz
otp-ca3b66e3d2c734e8715c7ed078e4fa9ae10462de.tar.bz2
otp-ca3b66e3d2c734e8715c7ed078e4fa9ae10462de.zip
Merge branch 'bjorn/remove-tuple-funs/OTP-10170'
* bjorn/remove-tuple-funs/OTP-10170: erl_expand_records: Remove stale support for literal tuple funs Teach is_function/2 that tuples are not funs
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/erl_bif_op.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/erts/emulator/beam/erl_bif_op.c b/erts/emulator/beam/erl_bif_op.c
index 13f8b1f63c..d4cd9c89b3 100644
--- a/erts/emulator/beam/erl_bif_op.c
+++ b/erts/emulator/beam/erl_bif_op.c
@@ -261,11 +261,6 @@ Eterm erl_is_function(Process* p, Eterm arg1, Eterm arg2)
if (exp->code[2] == (Uint) arity) {
BIF_RET(am_true);
}
- } else if (is_tuple(arg1)) {
- Eterm* tp = tuple_val(arg1);
- if (tp[0] == make_arityval(2) && is_atom(tp[1]) && is_atom(tp[2])) {
- BIF_RET(am_true);
- }
}
BIF_RET(am_false);
}