aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-05-06 14:14:03 +0200
committerBjörn Gustavsson <[email protected]>2014-06-05 13:46:28 +0200
commit02ac5e7084da25763ab823cd02cd461a0f7511bd (patch)
treed24aa7b3982c2634fc1433e8d1b87c690864442d
parent82c208f42ba9263cc97e30558dc2564511e64c4d (diff)
downloadotp-02ac5e7084da25763ab823cd02cd461a0f7511bd.tar.gz
otp-02ac5e7084da25763ab823cd02cd461a0f7511bd.tar.bz2
otp-02ac5e7084da25763ab823cd02cd461a0f7511bd.zip
BER: Remove a redundant clause in encoding of open types
The clause is just an optimization for a (extremly rare) special case. Removing it will eliminate a dialyzer warning.
-rw-r--r--lib/asn1/src/asn1rtt_ber.erl2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1rtt_ber.erl b/lib/asn1/src/asn1rtt_ber.erl
index 0c3c31e1d8..a85d50bde4 100644
--- a/lib/asn1/src/asn1rtt_ber.erl
+++ b/lib/asn1/src/asn1rtt_ber.erl
@@ -591,8 +591,6 @@ encode_tags(TagIn, {BytesSoFar,LenSoFar}) ->
encode_open_type(Val, T) when is_list(Val) ->
encode_open_type(list_to_binary(Val), T);
-encode_open_type(Val, []) ->
- {Val,byte_size(Val)};
encode_open_type(Val, Tag) ->
encode_tags(Tag, Val, byte_size(Val)).