diff options
author | Björn Gustavsson <[email protected]> | 2013-09-10 13:47:58 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-09-18 11:45:01 +0200 |
commit | 0b35b587814d9524d46473571778990ce3fdf17f (patch) | |
tree | 7397f136cb394d57ad9d6f637f3eeeb2adedc11b /lib/asn1/test | |
parent | b379d700e1450a3fc7e76bb75369fa6b5eb2d327 (diff) | |
download | otp-0b35b587814d9524d46473571778990ce3fdf17f.tar.gz otp-0b35b587814d9524d46473571778990ce3fdf17f.tar.bz2 otp-0b35b587814d9524d46473571778990ce3fdf17f.zip |
Remove asn1_wrapper
Diffstat (limited to 'lib/asn1/test')
-rw-r--r-- | lib/asn1/test/Makefile | 1 | ||||
-rw-r--r-- | lib/asn1/test/asn1_wrapper.erl | 49 |
2 files changed, 0 insertions, 50 deletions
diff --git a/lib/asn1/test/Makefile b/lib/asn1/test/Makefile index baf9faf317..4f653c4aea 100644 --- a/lib/asn1/test/Makefile +++ b/lib/asn1/test/Makefile @@ -111,7 +111,6 @@ MODULES= \ asn1_test_lib \ asn1_app_test \ asn1_appup_test \ - asn1_wrapper \ asn1_SUITE \ error_SUITE diff --git a/lib/asn1/test/asn1_wrapper.erl b/lib/asn1/test/asn1_wrapper.erl deleted file mode 100644 index ac194fe38b..0000000000 --- a/lib/asn1/test/asn1_wrapper.erl +++ /dev/null @@ -1,49 +0,0 @@ -%% -%% %CopyrightBegin% -%% -%% Copyright Ericsson AB 2001-2013. All Rights Reserved. -%% -%% The contents of this file are subject to the Erlang Public License, -%% Version 1.1, (the "License"); you may not use this file except in -%% compliance with the License. You should have received a copy of the -%% Erlang Public License along with this software. If not, it can be -%% retrieved online at http://www.erlang.org/. -%% -%% Software distributed under the License is distributed on an "AS IS" -%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See -%% the License for the specific language governing rights and limitations -%% under the License. -%% -%% %CopyrightEnd% -%% -%% --module(asn1_wrapper). --author('kenneth@bilbo'). - --compile(export_all). -%%-export([Function/Arity, ...]). - - -encode(Module,Type,Value) -> - case asn1rt:encode(Module,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. - -decode(Module, Type, Bytes) when is_binary(Bytes) -> - asn1rt:decode(Module, Type, Bytes); -decode(Module, Type, Bytes) when is_list(Bytes) -> - asn1rt:decode(Module, Type, list_to_binary(Bytes)). - -erule(ber) -> - ber; -erule(per) -> - per; -erule(uper) -> - per. - - |