diff options
author | Björn Gustavsson <[email protected]> | 2016-01-29 12:47:17 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-01-29 13:18:23 +0100 |
commit | eb75295eb95602d0930ce9070447537b7ace22df (patch) | |
tree | 59bd4702990c4448d45b34689b8432459775a2ce /lib/hipe/main/hipe_main.erl | |
parent | 8a6abf9ac1ce0bae427e202b857d03b89086bb8d (diff) | |
download | otp-eb75295eb95602d0930ce9070447537b7ace22df.tar.gz otp-eb75295eb95602d0930ce9070447537b7ace22df.tar.bz2 otp-eb75295eb95602d0930ce9070447537b7ace22df.zip |
Eliminate redundant double is_function test
When tuple funs were still supported, the idiom for allowing
real funs with a certain arity but not tuple funs was:
is_function(Fun) andalso is_function(Fun, Arity)
The reason that both tests were needed is because:
is_function({M,F}) would return 'false'
is_function({M,F}, Arity) would return 'true'
In 53ec991d19, is_function/2 was updated to only return 'false'
for tuples, so the call to is_function/1 can be removed.
Diffstat (limited to 'lib/hipe/main/hipe_main.erl')
0 files changed, 0 insertions, 0 deletions