aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1rt_uper_bin.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-11-16 07:41:44 +0100
committerBjörn Gustavsson <[email protected]>2012-12-06 14:22:36 +0100
commit51733b718f3f57726951177e69eea4d5ad9266c4 (patch)
tree949b4464c734857c72926a662049ea100c075174 /lib/asn1/src/asn1rt_uper_bin.erl
parent81d6790acf9d55a63575efd93bdba1629c101b62 (diff)
downloadotp-51733b718f3f57726951177e69eea4d5ad9266c4.tar.gz
otp-51733b718f3f57726951177e69eea4d5ad9266c4.tar.bz2
otp-51733b718f3f57726951177e69eea4d5ad9266c4.zip
Optimize encoding/decoding of NULL in the per and uper back-ends
Don't waste time calling a trivial function in the run-time library for encoding and decoding of NULL values.
Diffstat (limited to 'lib/asn1/src/asn1rt_uper_bin.erl')
-rw-r--r--lib/asn1/src/asn1rt_uper_bin.erl7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/asn1/src/asn1rt_uper_bin.erl b/lib/asn1/src/asn1rt_uper_bin.erl
index e1f96416a9..6f6bfa195e 100644
--- a/lib/asn1/src/asn1rt_uper_bin.erl
+++ b/lib/asn1/src/asn1rt_uper_bin.erl
@@ -36,7 +36,6 @@
-export([decode_enumerated/3,
encode_bit_string/3, decode_bit_string/3 ]).
-export([encode_octet_string/2, decode_octet_string/2,
- encode_null/1, decode_null/1,
encode_relative_oid/1, decode_relative_oid/1,
encode_object_identifier/1, decode_object_identifier/1,
encode_real/1, decode_real/1,
@@ -1427,12 +1426,6 @@ decode_UTF8String(Bytes) ->
getoctets_as_bin(Bytes2,Len).
- % X.691:17
-encode_null(_) -> []. % encodes to nothing
-
-decode_null(Bytes) ->
- {'NULL',Bytes}.
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% encode_object_identifier(Val) -> CompleteList
%% encode_object_identifier({Name,Val}) -> CompleteList