aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen_per.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-21 14:01:02 +0100
committerBjörn Gustavsson <[email protected]>2013-05-31 14:52:13 +0200
commita0340855b3d92869ade4c48886685ff75fe17c8c (patch)
tree8f6098885f66e69861943b3855388b75bb5079f4 /lib/asn1/src/asn1ct_gen_per.erl
parentc4565ebd3af11ea8a7a010470b01317b5a4fc230 (diff)
downloadotp-a0340855b3d92869ade4c48886685ff75fe17c8c.tar.gz
otp-a0340855b3d92869ade4c48886685ff75fe17c8c.tar.bz2
otp-a0340855b3d92869ade4c48886685ff75fe17c8c.zip
asn1ct_name: Remove broken active/1
active/1 always returned 'true' (curr(Var) can never return 'nil', except if Var =:= 'nil'). Therefore, we can eliminate its use and remove it.
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_per.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen_per.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/asn1/src/asn1ct_gen_per.erl b/lib/asn1/src/asn1ct_gen_per.erl
index fac233532b..2fc970cad9 100644
--- a/lib/asn1/src/asn1ct_gen_per.erl
+++ b/lib/asn1/src/asn1ct_gen_per.erl
@@ -115,12 +115,7 @@ gen_encode_user(Erules,D) when is_record(D,typedef) ->
gen_encode_prim(Erules,D,DoTag) ->
- Value = case asn1ct_name:active(val) of
- true ->
- asn1ct_gen:mk_var(asn1ct_name:curr(val));
- false ->
- "Val"
- end,
+ Value = asn1ct_gen:mk_var(asn1ct_name:curr(val)),
gen_encode_prim(Erules,D,DoTag,Value).
gen_encode_prim(Erules,D,DoTag,Value) when is_record(D,type) ->