]> granicus.if.org Git - ejabberd/commitdiff
Comment unused code
authorBadlop <badlop@process-one.net>
Fri, 28 Jan 2011 11:11:34 +0000 (12:11 +0100)
committerBadlop <badlop@process-one.net>
Fri, 28 Jan 2011 11:11:34 +0000 (12:11 +0100)
src/ejabberd_c2s.erl

index 7e19c7635059876f9191cde0b3d60081cb00ff8b..36f99417d7e8e605fc361170af8ef886717e1b41 100644 (file)
@@ -2055,7 +2055,7 @@ resend_offline_messages(StateData) ->
        Rs when is_list(Rs) ->
            lists:foreach(
              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
                                 allow ->
                                     true;
@@ -2064,11 +2064,11 @@ resend_offline_messages(StateData) ->
                             end,
                      if
                          Pass ->
-                             Attrs2 = jlib:replace_from_to_attrs(
-                                        jlib:jid_to_string(From),
-                                        jlib:jid_to_string(To),
-                                        Attrs),
-                             FixedPacket = {xmlelement, Name, Attrs2, Els},
+                             %% Attrs2 = jlib:replace_from_to_attrs(
+                             %%                 jlib:jid_to_string(From),
+                             %%                 jlib:jid_to_string(To),
+                             %%                 Attrs),
+                             %% FixedPacket = {xmlelement, Name, Attrs2, Els},
                               %% Use route instead of send_element to go through standard workflow
                               ejabberd_router:route(From, To, Packet); 
                              %% send_element(StateData, FixedPacket),