Merge pull request #736 from quanzhuo/master

Comment unused type, unused term
This commit is contained in:
Evgeny Khramtsov 2015-09-16 18:22:19 +03:00
commit 5d11a19087
3 changed files with 4 additions and 4 deletions

View File

@ -281,7 +281,7 @@ is_fresh_enough(TimeStampLast, CacheTime) ->
get_last_access(User, Server) -> get_last_access(User, Server) ->
case ejabberd_sm:get_user_resources(User, Server) of case ejabberd_sm:get_user_resources(User, Server) of
[] -> [] ->
_US = {User, Server}, %% _US = {User, Server},
case get_last_info(User, Server) of case get_last_info(User, Server) of
mod_last_required -> mod_last_required; mod_last_required -> mod_last_required;
not_found -> never; not_found -> never;

View File

@ -44,9 +44,9 @@
-record(state, {host, module, function}). -record(state, {host, module, function}).
-type component() :: ejabberd_sm | ejabberd_local. %%-type component() :: ejabberd_sm | ejabberd_local.
-type type() :: no_queue | one_queue | pos_integer() | parallel. -type type() :: no_queue | one_queue | pos_integer() | parallel.
-type opts() :: no_queue | {one_queue, pid()} | {queues, [pid()]} | parallel. %%-type opts() :: no_queue | {one_queue, pid()} | {queues, [pid()]} | parallel.
%%==================================================================== %%====================================================================
%% API %% API

View File

@ -1912,7 +1912,7 @@ set_form(From, Host,
Server) Server)
of of
[] -> [] ->
_US = {User, Server}, %% _US = {User, Server},
case get_last_info(User, Server) of case get_last_info(User, Server) of
not_found -> ?T(Lang, <<"Never">>); not_found -> ?T(Lang, <<"Never">>);
{ok, Timestamp, _Status} -> {ok, Timestamp, _Status} ->