diff options
author | Björn Gustavsson <[email protected]> | 2012-11-30 15:48:17 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2012-12-01 08:23:19 +0100 |
commit | 53ec991d193d5115b356d5850b6b1fae0ad71df6 (patch) | |
tree | 024e4529d7391a8e67484932bfcd8e0dcbad7792 /erts/emulator/beam/erl_bif_op.c | |
parent | c4d680549e11e116dcdd95ac29101ef3e54aba5f (diff) | |
download | otp-53ec991d193d5115b356d5850b6b1fae0ad71df6.tar.gz otp-53ec991d193d5115b356d5850b6b1fae0ad71df6.tar.bz2 otp-53ec991d193d5115b356d5850b6b1fae0ad71df6.zip |
Teach is_function/2 that tuples are not funs
Diffstat (limited to 'erts/emulator/beam/erl_bif_op.c')
-rw-r--r-- | erts/emulator/beam/erl_bif_op.c | 5 |
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); } |