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

Code clean-up (EJAB-936)(thanks to Michael Remond)

SVN Revision: 2319
This commit is contained in:
Badlop 2009-06-16 18:27:40 +00:00
parent b74cb8828b
commit 35c6ea68cc

View File

@ -4,7 +4,7 @@
%%% Purpose : Implements XMPP over BOSH (XEP-0205) (formerly known as
%%% HTTP Binding)
%%% Created : 21 Sep 2005 by Stefan Strigler <steve@zeank.in-berlin.de>
%%% Id : $Id: ejabberd_http_bind.erl 958 2009-05-12 14:43:41Z mremond $
%%% Id : $Id: ejabberd_http_bind.erl 959 2009-05-12 14:45:27Z mremond $
%%%----------------------------------------------------------------------
-module(ejabberd_http_bind).
@ -1056,11 +1056,11 @@ get_max_inactivity({Host, _}, Default) ->
get_max_inactivity(_, Default) ->
Default.
remove_tag_attr(Attr, {xmlelement, Name, Attrs, Els}) ->
Attrs1 = lists:keydelete(Attr, 1, Attrs),
{xmlelement, Name, Attrs1, Els};
remove_tag_attr(Attr, El) ->
El.
%% remove_tag_attr(Attr, {xmlelement, Name, Attrs, Els}) ->
%% Attrs1 = lists:keydelete(Attr, 1, Attrs),
%% {xmlelement, Name, Attrs1, Els};
%% remove_tag_attr(Attr, El) ->
%% El.
check_default_xmlns({xmlelement, Name, Attrs, Els} = El) ->
case xml:get_tag_attr_s("xmlns", El) of