From: Evgeny Khramtsov Date: Thu, 18 Jul 2019 18:53:22 +0000 (+0300) Subject: Get rid of useless code X-Git-Tag: 19.08~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50ef982effaec5ab81d7b4d5b8533a4482428343;p=ejabberd Get rid of useless code --- diff --git a/src/ejabberd_sm.erl b/src/ejabberd_sm.erl index 7d34e66bb..dd23bc685 100644 --- a/src/ejabberd_sm.erl +++ b/src/ejabberd_sm.erl @@ -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}.