25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Remove some unused cases clauses

This commit is contained in:
Badlop 2010-06-21 21:33:36 +02:00
parent 3ee28ef7cc
commit 0b5bcaf74a

View File

@ -1046,12 +1046,7 @@ prepare_outpacket_response(#http_bind{id=Sid, wait=Wait,
BOSH_attribs =
[#xmlattr{name = 'authid', value = list_to_binary(AuthID)},
#xmlattr{name = 'xmlns:stream', value = ?NS_XMPP_b}] ++
case OutEls of
[] ->
prepare_response(Sess, Rid, OutPacket, true);
_ ->
[#xmlattr{name = 'version', ns = ?NS_BOSH_s, value = list_to_binary(Version)}]
end,
[#xmlattr{name = 'version', ns = ?NS_BOSH_s, value = list_to_binary(Version)}],
MaxInactivity = get_max_inactivity(To, ?MAX_INACTIVITY),
MaxPause = get_max_pause(To),
{200, ?HEADER,
@ -1284,8 +1279,6 @@ parse_request(Data, PayloadSize, MaxStanzaSize) ->
end;
[#xmlel{}] ->
% {xmlelement, _Name, _Attrs, _Els} ->
{error, bad_request};
{error, _} ->
{error, bad_request}
end.