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

Comment unused code

This commit is contained in:
Badlop 2011-01-28 12:11:34 +01:00
parent a25c9c5df3
commit 36166aa40e

View File

@ -2055,7 +2055,7 @@ resend_offline_messages(StateData) ->
Rs when is_list(Rs) -> Rs when is_list(Rs) ->
lists:foreach( lists:foreach(
fun({route, fun({route,
From, To, {xmlelement, Name, Attrs, Els} = Packet}) -> From, To, {xmlelement, _Name, _Attrs, _Els} = Packet}) ->
Pass = case privacy_check_packet(StateData, From, To, Packet, in) of Pass = case privacy_check_packet(StateData, From, To, Packet, in) of
allow -> allow ->
true; true;
@ -2064,11 +2064,11 @@ resend_offline_messages(StateData) ->
end, end,
if if
Pass -> Pass ->
Attrs2 = jlib:replace_from_to_attrs( %% Attrs2 = jlib:replace_from_to_attrs(
jlib:jid_to_string(From), %% jlib:jid_to_string(From),
jlib:jid_to_string(To), %% jlib:jid_to_string(To),
Attrs), %% Attrs),
FixedPacket = {xmlelement, Name, Attrs2, Els}, %% FixedPacket = {xmlelement, Name, Attrs2, Els},
%% Use route instead of send_element to go through standard workflow %% Use route instead of send_element to go through standard workflow
ejabberd_router:route(From, To, Packet); ejabberd_router:route(From, To, Packet);
%% send_element(StateData, FixedPacket), %% send_element(StateData, FixedPacket),