]> granicus.if.org Git - ejabberd/commitdiff
Get rid of useless code
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Thu, 18 Jul 2019 18:53:22 +0000 (21:53 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Thu, 18 Jul 2019 18:53:22 +0000 (21:53 +0300)
src/ejabberd_sm.erl

index 7d34e66bb7a9be74b1ad250231eed12a93e81016..dd23bc685cb0e14568efbb2fe34ba8bb17c7b2f9 100644 (file)
@@ -499,15 +499,6 @@ handle_cast(Msg, State) ->
     ?WARNING_MSG("Unexpected cast: ~p", [Msg]),
     {noreply, State}.
 
-handle_info({route, Packet}, State) ->
-    try route(Packet)
-    catch ?EX_RULE(E, R, St) ->
-           StackTrace = ?EX_STACK(St),
-           ?ERROR_MSG("Failed to route packet:~n~s~n** ~s",
-                      [xmpp:pp(Packet),
-                       misc:format_exception(2, E, R, StackTrace)])
-    end,
-    {noreply, State};
 handle_info(Info, State) ->
     ?WARNING_MSG("Unexpected info: ~p", [Info]),
     {noreply, State}.