]> git.proxmox.com Git - proxmox-acme.git/commitdiff
plugins: remove get_subplugins
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 17 Apr 2020 12:31:49 +0000 (14:31 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 17 Apr 2020 12:33:41 +0000 (14:33 +0200)
it's unused, and the only plugin that has such functionality already
encodes the possible values as enum in the schema anyway..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/ACME.pm
src/PVE/ACME/Challenge.pm
src/PVE/ACME/DNSChallenge.pm
src/PVE/ACME/StandAlone.pm

index 4a05024ac4e0dba1d3bd7fc11ed968d229628557..c5b8d669f8b1496e1c451cb4d0ff264c519ec97e 100644 (file)
@@ -493,27 +493,6 @@ sub request_challenge_validation {
     return $return;
 }
 
-# return all availible subplugins from the plugins
-sub get_subplugins {
-
-    my $tmp = [];
-    my $plugins = PVE::ACME::Challenge->lookup_types();
-
-    foreach my $plugin_name (@$plugins) {
-       my $plugin = PVE::ACME::Challenge->lookup($plugin_name);
-       push @$tmp, $plugin->get_subplugins();
-    }
-
-    my $subplugins = [];
-    foreach my $array (@$tmp) {
-       foreach my $subplugin ( @$array) {
-           push @$subplugins, $subplugin;
-       }
-    }
-
-    return $subplugins;
-}
-
 # actually 'do' a $method request on $url
 # $data: input for JWS, optional
 # $use_jwk: use JWK instead of KID in JWD (see sub jws)
index 5fb9cbe4adc66f8c135e5a866ad05af5b4036767..16d75ad7be41e99017db7832c14a8dffdb7ce380 100644 (file)
@@ -70,10 +70,6 @@ sub extract_challenge {
     die "plugin does not support any of the requested challenge types\n";
 }
 
-sub get_subplugins {
-    return [];
-}
-
 # acme => PVE::ACME instance
 # auth => authorization object returned by ACME server
 # $data => {
index 7f7f1256639d1864301c4d3798d4b84358994b0e..8e61c254e8368c75a67a85142606187b0c49541e 100644 (file)
@@ -143,10 +143,6 @@ sub options {
     };
 }
 
-sub get_subplugins {
-    return $api_name_list;
-}
-
 my $proxmox_acme_command = sub {
     my ($self, $acme, $auth, $data, $action) = @_;
 
index 6a6f05abaede87203671606daa869398a2b255dc..0e2ece678bf7350ddb65e9dfb5a16420324f3eda 100644 (file)
@@ -27,10 +27,6 @@ sub options {
     };
 }
 
-sub get_subplugins {
-    return [];
-}
-
 sub setup {
     my ($self, $acme, $auth, $data) = @_;