]> git.proxmox.com Git - pve-common.git/commitdiff
cli: code cleanup
authorPhilip Abernethy <p.abernethy@proxmox.com>
Tue, 17 Oct 2017 11:16:25 +0000 (13:16 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 17 Oct 2017 11:27:21 +0000 (13:27 +0200)
Removes obsolete subroutine and unused Dumper

src/PVE/CLIHandler.pm

index e61fa6a1cdf02c601d1850021cc3e94e246ca099..0c48335fb6308895be3993373a2584e803ff61ef 100644 (file)
@@ -2,7 +2,6 @@ package PVE::CLIHandler;
 
 use strict;
 use warnings;
-use Data::Dumper;
 
 use PVE::SafeSyslog;
 use PVE::Exception qw(raise raise_param_exc);
@@ -338,29 +337,6 @@ complete -o default -C '$exename bashcomplete' $exename
 __EOD__
 }
 
-sub find_cli_class_source {
-    my ($name) = @_;
-
-    my $filename;
-
-    $name =~ s/-/_/g;
-
-    my $cpath = "PVE/CLI/${name}.pm";
-    my $spath = "PVE/Service/${name}.pm";
-    foreach my $p (@INC) {
-       foreach my $s (($cpath, $spath)) {
-           my $testfn = "$p/$s";
-           if (-f $testfn) {
-               $filename = $testfn;
-               last;
-           }
-       }
-       last if defined($filename);
-    }
-
-    return $filename;
-}
-
 sub generate_asciidoc_synopsys {
     my ($class) = @_;
     $class->generate_asciidoc_synopsis();