From d487299b753c42d415ad160f797651e63ed17cf4 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Mon, 6 Feb 2023 23:00:17 +0100 Subject: [PATCH] refactor: remove dead code --- apps/emqx_authn/i18n/emqx_authn_jwt_i18n.conf | 14 -------------- apps/emqx_authn/src/emqx_authn.app.src | 2 +- .../emqx_authn/src/simple_authn/emqx_authn_jwt.erl | 6 +----- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/apps/emqx_authn/i18n/emqx_authn_jwt_i18n.conf b/apps/emqx_authn/i18n/emqx_authn_jwt_i18n.conf index a420dd7d9..eb243c0cb 100644 --- a/apps/emqx_authn/i18n/emqx_authn_jwt_i18n.conf +++ b/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 { desc { en: """JWT claim name to use for getting ACL rules.""" diff --git a/apps/emqx_authn/src/emqx_authn.app.src b/apps/emqx_authn/src/emqx_authn.app.src index 7f01d94c0..0b5b0dedc 100644 --- a/apps/emqx_authn/src/emqx_authn.app.src +++ b/apps/emqx_authn/src/emqx_authn.app.src @@ -1,7 +1,7 @@ %% -*- mode: erlang -*- {application, emqx_authn, [ {description, "EMQX Authentication"}, - {vsn, "0.1.12"}, + {vsn, "0.1.13"}, {modules, []}, {registered, [emqx_authn_sup, emqx_authn_registry]}, {applications, [kernel, stdlib, emqx_resource, emqx_connector, ehttpc, epgsql, mysql, jose]}, diff --git a/apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl b/apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl index 852139875..021d4a2d1 100644 --- a/apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl +++ b/apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl @@ -91,11 +91,7 @@ desc('public-key') -> ?DESC('public-key'); desc('jwks') -> ?DESC('jwks'); -desc(ssl_disable) -> - ?DESC(ssl_disable); -desc(ssl_enable) -> - ?DESC(ssl_enable); -desc(_) -> +desc(undefined) -> undefined. common_fields() ->