[pve-devel] [PATCH common v2 4/4] Remove deprecated run_cli subroutine

Philip Abernethy p.abernethy at proxmox.com
Mon Oct 16 11:03:33 CEST 2017


---
v2: Corrects commit msg
 src/PVE/CLIHandler.pm | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm
index e61fa6a..77c71a4 100644
--- a/src/PVE/CLIHandler.pm
+++ b/src/PVE/CLIHandler.pm
@@ -472,17 +472,6 @@ my $handle_simple_cmd = sub {
     &$outsub($res) if $outsub;
 };
 
-sub run_cli {
-    my ($class, $pwcallback, $podfn, $preparefunc) = @_;
-
-    # Note: "depreciated function run_cli - use run_cli_handler instead";
-    # silently ignore $podfn , which is no longer supported.
-
-    die "password callback is no longer supported" if $pwcallback;
-
-    run_cli_handler($class, prepare => $preparefunc);
-}
-
 sub run_cli_handler {
     my ($class, %params) = @_;
 
-- 
2.11.0




More information about the pve-devel mailing list