5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-02-04 01:46:59 +03:00

cli: code cleanup

Removes obsolete subroutine and unused Dumper
This commit is contained in:
Philip Abernethy 2017-10-17 13:16:25 +02:00 committed by Wolfgang Bumiller
parent a2d049afde
commit 367f04c577

View 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();