aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen_per.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-03-04 19:50:00 +0100
committerBjörn Gustavsson <[email protected]>2013-05-31 14:52:17 +0200
commit7767bb01374427a6a09a2655de1a53a5ffe1d673 (patch)
tree3892241cab5c84e738d433da30d58de3aecbfc24 /lib/asn1/src/asn1ct_gen_per.erl
parent53022b787c723a6c4cdf153f5705bde5fb4655ea (diff)
downloadotp-7767bb01374427a6a09a2655de1a53a5ffe1d673.tar.gz
otp-7767bb01374427a6a09a2655de1a53a5ffe1d673.tar.bz2
otp-7767bb01374427a6a09a2655de1a53a5ffe1d673.zip
Get rid of 'ANY' in the backends
asn1ct_check has translated all occurrences of 'ANY' to 'ASN1_OPEN_TYPE'.
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_per.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen_per.erl4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/asn1/src/asn1ct_gen_per.erl b/lib/asn1/src/asn1ct_gen_per.erl
index 3e35eb9f0e..37f5b9c960 100644
--- a/lib/asn1/src/asn1ct_gen_per.erl
+++ b/lib/asn1/src/asn1ct_gen_per.erl
@@ -195,8 +195,6 @@ gen_encode_prim(Erules,D,DoTag,Value) when is_record(D,type) ->
{asis,Pa},Value]);
'UTF8String' ->
call(Erules, encode_UTF8String, [Value]);
- 'ANY' ->
- call(Erules, encode_open_type, [Value]);
'ASN1_OPEN_TYPE' ->
NewValue = case Constraint of
[#'Externaltypereference'{type=Tname}] ->
@@ -1015,8 +1013,6 @@ gen_dec_imm(Erule, #type{def=Name,constraint=C}) ->
gen_dec_imm_1('ASN1_OPEN_TYPE', Constraint, Aligned) ->
imm_decode_open_type(Constraint, Aligned);
-gen_dec_imm_1('ANY', _Constraint, Aligned) ->
- imm_decode_open_type([], Aligned);
gen_dec_imm_1({'BIT STRING',NNL}, Constr0, Aligned) ->
Constr = asn1ct_imm:effective_constraint(bitstring, Constr0),
Imm = asn1ct_imm:per_dec_raw_bitstring(Constr, Aligned),