aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen_per.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-07-05 16:09:30 +0200
committerLukas Larsson <[email protected]>2011-08-01 16:38:19 +0200
commit96bd7dd3b031f541158bac21df26b6a77f809909 (patch)
tree7d825f590d7cbfca1b0547dafcd8d38c4660d36f /lib/asn1/src/asn1ct_gen_per.erl
parent02678feab82e52f8f1172eddba6560e880f68969 (diff)
downloadotp-96bd7dd3b031f541158bac21df26b6a77f809909.tar.gz
otp-96bd7dd3b031f541158bac21df26b6a77f809909.tar.bz2
otp-96bd7dd3b031f541158bac21df26b6a77f809909.zip
Remove driver support for per encoding
Handle the new error messages from the asn1 nifs Remove dead code for erlang optimized per decode
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_per.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen_per.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/asn1/src/asn1ct_gen_per.erl b/lib/asn1/src/asn1ct_gen_per.erl
index becd536967..b90a0adf81 100644
--- a/lib/asn1/src/asn1ct_gen_per.erl
+++ b/lib/asn1/src/asn1ct_gen_per.erl
@@ -232,17 +232,13 @@ gen_encode_prim(Erules,D,DoTag,Value) when is_record(D,type) ->
emit(["?RT_PER:encode_open_type(", {asis,Constraint}, ",",
Value, ")"]);
'ASN1_OPEN_TYPE' ->
- Nif = lists:member(nif,get(encoding_options)) andalso
- lists:member(optimize,get(encoding_options)),
NewValue = case Constraint of
[#'Externaltypereference'{type=Tname}] ->
io_lib:format(
- "?RT_PER:complete(enc_~s(~s)"++
- [",nif" || Nif == true]++")",[Tname,Value]);
+ "?RT_PER:complete(enc_~s(~s))",[Tname,Value]);
[#type{def=#'Externaltypereference'{type=Tname}}] ->
io_lib:format(
- "?RT_PER:complete(enc_~s(~s)"++
- [",nif" || Nif == true]++")",
+ "?RT_PER:complete(enc_~s(~s))",
[Tname,Value]);
_ -> Value
end,