Procházet zdrojové kódy

Merge pull request #9925 from zmstone/0206-refactor-remove-dead-code

refactor: remove dead code
Zaiming (Stone) Shi před 3 roky
rodič
revize
e694e5fd13

+ 0 - 14
apps/emqx_authn/i18n/emqx_authn_jwt_i18n.conf

@@ -197,20 +197,6 @@ Authentication will verify that the value of claims in the JWT (taken from the P
     }
     }
   }
   }
 
 
-  ssl_disable {
-    desc {
-      en: """SSL configuration."""
-      zh: """SSL 配置。"""
-    }
-  }
-
-  ssl_enable {
-    desc {
-      en: """SSL configuration."""
-      zh: """SSL 配置。"""
-    }
-  }
-
   acl_claim_name {
   acl_claim_name {
     desc {
     desc {
       en: """JWT claim name to use for getting ACL rules."""
       en: """JWT claim name to use for getting ACL rules."""

+ 1 - 1
apps/emqx_authn/src/emqx_authn.app.src

@@ -1,7 +1,7 @@
 %% -*- mode: erlang -*-
 %% -*- mode: erlang -*-
 {application, emqx_authn, [
 {application, emqx_authn, [
     {description, "EMQX Authentication"},
     {description, "EMQX Authentication"},
-    {vsn, "0.1.12"},
+    {vsn, "0.1.13"},
     {modules, []},
     {modules, []},
     {registered, [emqx_authn_sup, emqx_authn_registry]},
     {registered, [emqx_authn_sup, emqx_authn_registry]},
     {applications, [kernel, stdlib, emqx_resource, emqx_connector, ehttpc, epgsql, mysql, jose]},
     {applications, [kernel, stdlib, emqx_resource, emqx_connector, ehttpc, epgsql, mysql, jose]},

+ 1 - 5
apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl

@@ -91,11 +91,7 @@ desc('public-key') ->
     ?DESC('public-key');
     ?DESC('public-key');
 desc('jwks') ->
 desc('jwks') ->
     ?DESC('jwks');
     ?DESC('jwks');
-desc(ssl_disable) ->
-    ?DESC(ssl_disable);
-desc(ssl_enable) ->
-    ?DESC(ssl_enable);
-desc(_) ->
+desc(undefined) ->
     undefined.
     undefined.
 
 
 common_fields() ->
 common_fields() ->