diff options
author | Björn Gustavsson <[email protected]> | 2012-11-27 11:00:16 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2012-12-06 14:22:36 +0100 |
commit | 17f0d50a87afdf5864276e810ece755966f92f50 (patch) | |
tree | 9c36f008c4a2f27eabf25a045024bd95cd3c9af0 /lib | |
parent | a5d6d50ec7b2b011f6fa93bc6451f3291e9e50c0 (diff) | |
download | otp-17f0d50a87afdf5864276e810ece755966f92f50.tar.gz otp-17f0d50a87afdf5864276e810ece755966f92f50.tar.bz2 otp-17f0d50a87afdf5864276e810ece755966f92f50.zip |
Eliminate the useless 'telltype' argument in component decoding
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asn1/src/asn1ct_constructed_per.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/asn1/src/asn1ct_constructed_per.erl b/lib/asn1/src/asn1ct_constructed_per.erl index 46034622c8..b758769d1a 100644 --- a/lib/asn1/src/asn1ct_constructed_per.erl +++ b/lib/asn1/src/asn1ct_constructed_per.erl @@ -515,7 +515,7 @@ gen_decode_sof(Erules,Typename,SeqOrSetOf,D) when is_record(D,type) -> gen_decode_length(SizeConstraint, is_optimized(Erules)), emit({"'dec_",asn1ct_gen:list2name(Typename), - "_components'(Num, Bytes1, telltype",ObjFun,", []).",nl}), + "_components'(Num, Bytes1",ObjFun,", []).",nl,nl}), NewComponentType = case ComponentType#type.def of {'ENUMERATED',_,Component}-> @@ -609,10 +609,10 @@ gen_decode_sof_components(Erule,Typename,SeqOrSetOf,Cont) -> {"",""} end, emit({"'dec_",asn1ct_gen:list2name(Typename), - "_components'(0, Bytes, _",ObjFun_Var,", Acc) ->",nl, + "_components'(0, Bytes",ObjFun_Var,", Acc) ->",nl, indent(3),"{lists:reverse(Acc), Bytes};",nl}), emit({"'dec_",asn1ct_gen:list2name(Typename), - "_components'(Num, Bytes, _",ObjFun,", Acc) ->",nl}), + "_components'(Num, Bytes",ObjFun,", Acc) ->",nl}), emit({indent(3),"{Term,Remain} = "}), Constructed_Suffix = asn1ct_gen:constructed_suffix(SeqOrSetOf, Cont#type.def), @@ -641,7 +641,7 @@ gen_decode_sof_components(Erule,Typename,SeqOrSetOf,Cont) -> emit({"'dec_",Conttype,"'(Bytes,telltype),",nl}) end, emit({indent(3),"'dec_",asn1ct_gen:list2name(Typename), - "_components'(Num-1, Remain, telltype",ObjFun,", [Term|Acc]).",nl}). + "_components'(Num-1, Remain",ObjFun,", [Term|Acc]).",nl}). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |