-compile(export_all)

This commit is contained in:
Feng 2016-02-16 02:54:29 +08:00
parent 3d7d473f35
commit 6930439158
8 changed files with 0 additions and 31 deletions

View File

@ -18,10 +18,6 @@
-export([apply_module_attributes/1, all_module_attributes/1]).
-ifdef(TEST).
-compile(export_all).
-endif.
%% only {F, Args}...
apply_module_attributes(Name) ->
[{Module, [apply(Module, F, Args) || {F, Args} <- Attrs]} ||

View File

@ -28,10 +28,6 @@
-export([format/1]).
-ifdef(TEST).
-compile(export_all).
-endif.
%% @doc Make a message
-spec make(From, Topic, Payload) -> mqtt_message() when
From :: atom() | binary(),

View File

@ -30,9 +30,6 @@
%% Schema and tables
-export([copy_schema/1, delete_schema/0, del_schema_copy/1,
create_table/2, copy_table/1, copy_table/2]).
-ifdef(TEST).
-compile(export_all).
-endif.
%%--------------------------------------------------------------------
%% Start and init mnesia

View File

@ -27,10 +27,6 @@
-record(state, {topics, stored = false}).
-ifdef(TEST).
-compile(export_all).
-endif.
load(Opts) ->
Topics = [{iolist_to_binary(Topic), QoS} || {Topic, QoS} <- Opts, ?IS_QOS(QoS)],
State = #state{topics = Topics, stored = lists:member(stored, Opts)},

View File

@ -26,10 +26,6 @@
-export([format/1]).
-ifdef(TEST).
-compile(export_all).
-endif.
%% @doc Protocol name of version
-spec protocol_name(mqtt_vsn()) -> binary().
protocol_name(Ver) when Ver =:= ?MQTT_PROTO_V31; Ver =:= ?MQTT_PROTO_V311 ->

View File

@ -43,10 +43,6 @@
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
-ifdef(TEST).
-compile(export_all).
-endif.
-record(state, {pool, id, statsfun}).
-define(ROUTER, emqttd_router).

View File

@ -31,10 +31,6 @@
%% Supervisor callbacks
-export([init/1]).
-ifdef(TEST).
-compile(export_all).
-endif.
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, [emqttd_broker:env(pubsub)]).

View File

@ -45,10 +45,6 @@
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
-ifdef(TEST).
-compile(export_all).
-endif.
-record(aging, {topics, time, tref}).
-record(state, {pool, id, aging :: #aging{}, statsfun}).