24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-18 22:15:20 +02:00

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

SVN Revision: 2256
This commit is contained in:
Badlop 2009-06-16 17:48:18 +00:00
parent ada531bd8d
commit d950fb96b6

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