aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-07-03 14:39:13 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-07-03 14:40:43 +0200
commit7c3a860f6cd074d2d5d8f8b38e4c9fba591bac95 (patch)
treecce668a2d6a4466b758e8a1a6729131a392bb770 /lib/compiler/src
parent8c2eb1fb0c0ff0b98476ad3f0e068decf06e6016 (diff)
downloadotp-7c3a860f6cd074d2d5d8f8b38e4c9fba591bac95.tar.gz
otp-7c3a860f6cd074d2d5d8f8b38e4c9fba591bac95.tar.bz2
otp-7c3a860f6cd074d2d5d8f8b38e4c9fba591bac95.zip
compiler: Maps are always patterns never values in matching
Removed dead code.
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/v3_codegen.erl4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl
index 47a357c23d..d0c337e3ca 100644
--- a/lib/compiler/src/v3_codegen.erl
+++ b/lib/compiler/src/v3_codegen.erl
@@ -643,10 +643,6 @@ select_val_cg(tuple, R, [Arity,{f,Lbl}], Tf, Vf, [{label,Lbl}|Sis]) ->
[{test,is_tuple,{f,Tf},[R]},{test,test_arity,{f,Vf},[R,Arity]}|Sis];
select_val_cg(tuple, R, Vls, Tf, Vf, Sis) ->
[{test,is_tuple,{f,Tf},[R]},{select_tuple_arity,R,{f,Vf},{list,Vls}}|Sis];
-select_val_cg(map, R, [_Val,{f,Lbl}], Fail, Fail, [{label,Lbl}|Sis]) ->
- [{test,is_map,{f,Fail},[R]}|Sis];
-select_val_cg(map, R, [_Val,{f,Lbl}|_], Tf, _Vf, [{label,Lbl}|Sis]) ->
- [{test,is_map,{f,Tf},[R]}|Sis];
select_val_cg(Type, R, [Val, {f,Lbl}], Fail, Fail, [{label,Lbl}|Sis]) ->
[{test,is_eq_exact,{f,Fail},[R,{Type,Val}]}|Sis];
select_val_cg(Type, R, [Val, {f,Lbl}], Tf, Vf, [{label,Lbl}|Sis]) ->