refactor(session): drop `is_session/1` helper as useless
This is a part of effort to minimize `emqx_session` module interface to simplify adding alternative session implementations.
This commit is contained in:
parent
0cd2351134
commit
dd31487b4a
|
@ -64,7 +64,6 @@
|
||||||
-export([
|
-export([
|
||||||
info/1,
|
info/1,
|
||||||
info/2,
|
info/2,
|
||||||
is_session/1,
|
|
||||||
stats/1,
|
stats/1,
|
||||||
obtain_next_pkt_id/1,
|
obtain_next_pkt_id/1,
|
||||||
get_mqueue/1
|
get_mqueue/1
|
||||||
|
@ -88,7 +87,6 @@
|
||||||
enqueue/3,
|
enqueue/3,
|
||||||
dequeue/2,
|
dequeue/2,
|
||||||
filter_queue/2,
|
filter_queue/2,
|
||||||
ignore_local/4,
|
|
||||||
retry/2,
|
retry/2,
|
||||||
terminate/3
|
terminate/3
|
||||||
]).
|
]).
|
||||||
|
@ -252,9 +250,6 @@ unpersist(Session) ->
|
||||||
%% Info, Stats
|
%% Info, Stats
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
is_session(#session{}) -> true;
|
|
||||||
is_session(_) -> false.
|
|
||||||
|
|
||||||
%% @doc Get infos of the session.
|
%% @doc Get infos of the session.
|
||||||
-spec info(session()) -> emqx_types:infos().
|
-spec info(session()) -> emqx_types:infos().
|
||||||
info(Session) ->
|
info(Session) ->
|
||||||
|
|
Loading…
Reference in New Issue