Browse Source

chore(plugins): delete emqx_plugins module attributes

Turtle 4 years ago
parent
commit
9e97de04c9

+ 1 - 3
apps/emqx_authn/src/emqx_authn_app.erl

@@ -21,8 +21,6 @@
 
 -behaviour(application).
 
--emqx_plugin(?MODULE).
-
 %% Application callbacks
 -export([ start/2
         , stop/1
@@ -56,4 +54,4 @@ initialize_authenticators([#{name := Name} = AuthenticatorConfig | More]) ->
             initialize_authenticators(More);
         {error, Reason} ->
             ?LOG(error, "Failed to create authenticator '~s': ~p", [Name, Reason])
-    end.
+    end.

+ 0 - 2
apps/emqx_bridge_mqtt/src/emqx_bridge_mqtt_app.erl

@@ -16,8 +16,6 @@
 
 -module(emqx_bridge_mqtt_app).
 
--emqx_plugin(bridge).
-
 -behaviour(application).
 
 -export([start/2, stop/1]).

+ 0 - 2
apps/emqx_dashboard/src/emqx_dashboard_app.erl

@@ -18,8 +18,6 @@
 
 -behaviour(application).
 
--emqx_plugin(?MODULE).
-
 -export([ start/2
         , stop/1
         ]).

+ 0 - 2
apps/emqx_management/src/emqx_mgmt_app.erl

@@ -18,8 +18,6 @@
 
 -behaviour(application).
 
--emqx_plugin(?MODULE).
-
 -define(APP, emqx_management).
 
 -export([ start/2

+ 3 - 3
apps/emqx_modules/src/emqx_modules_app.erl

@@ -18,9 +18,9 @@
 
 -behaviour(application).
 
--export([start/2]).
-
--export([stop/1]).
+-export([ start/2
+        , stop/1
+        ]).
 
 start(_Type, _Args) ->
     {ok, Sup} = emqx_modules_sup:start_link(),

+ 0 - 2
apps/emqx_retainer/src/emqx_retainer_app.erl

@@ -18,8 +18,6 @@
 
 -behaviour(application).
 
--emqx_plugin(?MODULE).
-
 -export([ start/2
         , stop/1
         ]).

+ 0 - 2
apps/emqx_rule_engine/src/emqx_rule_engine_app.erl

@@ -18,8 +18,6 @@
 
 -behaviour(application).
 
--emqx_plugin(?MODULE).
-
 -export([start/2]).
 
 -export([stop/1]).