diff options
author | Björn Gustavsson <[email protected]> | 2014-05-06 15:38:14 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-06-05 13:46:28 +0200 |
commit | 4e88e704e902c774327d08f40f310d3d1572f2b6 (patch) | |
tree | 3d09e6a1009c2ce93ef045c3252f06845e70da1a /lib/asn1/src/asn1rtt_ber.erl | |
parent | 02ac5e7084da25763ab823cd02cd461a0f7511bd (diff) | |
download | otp-4e88e704e902c774327d08f40f310d3d1572f2b6.tar.gz otp-4e88e704e902c774327d08f40f310d3d1572f2b6.tar.bz2 otp-4e88e704e902c774327d08f40f310d3d1572f2b6.zip |
BER: Optimize encoding of ENUMERATED
This will also eliminate a dialyzer warning.
Diffstat (limited to 'lib/asn1/src/asn1rtt_ber.erl')
-rw-r--r-- | lib/asn1/src/asn1rtt_ber.erl | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/asn1/src/asn1rtt_ber.erl b/lib/asn1/src/asn1rtt_ber.erl index a85d50bde4..bfa4253b3d 100644 --- a/lib/asn1/src/asn1rtt_ber.erl +++ b/lib/asn1/src/asn1rtt_ber.erl @@ -28,7 +28,6 @@ encode_integer/2,encode_integer/3, decode_integer/2, number2name/2, - encode_enumerated/2, encode_unnamed_bit_string/2,encode_unnamed_bit_string/3, encode_named_bit_string/3,encode_named_bit_string/4, encode_bit_string/4, @@ -711,15 +710,6 @@ number2name(Int, NamedNumberList) -> Int end. - -%%============================================================================ -%% Enumerated value, ITU_T X.690 Chapter 8.4 - -%% encode enumerated value -%%============================================================================ -encode_enumerated(Val, TagIn) when is_integer(Val) -> - encode_tags(TagIn, encode_integer(Val)). - %%============================================================================ %% Bitstring value, ITU_T X.690 Chapter 8.6 %% |