aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/testobj.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-09-10 16:10:31 +0200
committerBjörn Gustavsson <[email protected]>2017-01-13 11:49:41 +0100
commitc82bbd8f28f3e0ce00f5db44f7a6cef75653eee5 (patch)
treea52639e67e6dc43530a9318ea0442bddc46b6282 /lib/asn1/test/asn1_SUITE_data/testobj.erl
parent19e33117de1c44c0e4200ca8ee280cb843842b4c (diff)
downloadotp-c82bbd8f28f3e0ce00f5db44f7a6cef75653eee5.tar.gz
otp-c82bbd8f28f3e0ce00f5db44f7a6cef75653eee5.tar.bz2
otp-c82bbd8f28f3e0ce00f5db44f7a6cef75653eee5.zip
asn1: Remove deprecated functions
Remove the entire asn1rt module. All functions in it were deprecated in OTP 17. In asn1ct, remove the deprecated functions asn1ct:encode/3 and asn1ct:decode/3. Also remove asn1ct:encode/2, which has not been formally deprecated but is undocumented.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/testobj.erl')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/testobj.erl10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/testobj.erl b/lib/asn1/test/asn1_SUITE_data/testobj.erl
index a0e00f8314..e547ea4572 100644
--- a/lib/asn1/test/asn1_SUITE_data/testobj.erl
+++ b/lib/asn1/test/asn1_SUITE_data/testobj.erl
@@ -1410,16 +1410,14 @@ int2bin(Int) ->
%%%%%%%%%%%%%%%%% wrappers %%%%%%%%%%%%%%%%%%%%%%%%
wrapper_encode(Module,Type,Value) ->
- case asn1rt:encode(Module,Type,Value) of
- {ok,X} when binary(X) ->
+ case Module:encode(Type, Value) of
+ {ok,X} when is_binary(X) ->
{ok, binary_to_list(X)};
- {ok,X} ->
- {ok, binary_to_list(list_to_binary(X))};
Error ->
Error
end.
wrapper_decode(Module, Type, Bytes) when is_binary(Bytes) ->
- asn1rt:decode(Module, Type, Bytes);
+ Module:decode(Type, Bytes);
wrapper_decode(Module, Type, Bytes) when is_list(Bytes) ->
- asn1rt:decode(Module, Type, list_to_binary(Bytes)).
+ Module:decode(Type, list_to_binary(Bytes)).