[pve-devel] [pve-storage cli cleanup 4/5] remove print_content

Dietmar Maurer dietmar at proxmox.com
Thu Aug 9 11:43:51 CEST 2018


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 PVE/CLI/pvesm.pm | 28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/PVE/CLI/pvesm.pm b/PVE/CLI/pvesm.pm
index aaf3da8..3221d02 100755
--- a/PVE/CLI/pvesm.pm
+++ b/PVE/CLI/pvesm.pm
@@ -117,34 +117,6 @@ __PACKAGE__->register_method ({
 	return;
     }});
 
-my $print_content = sub {
-    my ($list) = @_;
-
-    my $maxlenname = 0;
-    foreach my $info (@$list) {
-
-	my $volid = $info->{volid};
-	my $sidlen =  length ($volid);
-	$maxlenname = $sidlen if $sidlen > $maxlenname;
-    }
-
-    foreach my $info (@$list) {
-	next if !$info->{vmid};
-	my $volid = $info->{volid};
-
-	printf "%-${maxlenname}s %5s %10d %d\n", $volid,
-	$info->{format}, $info->{size}, $info->{vmid};
-    }
-
-    foreach my $info (sort { $a->{format} cmp $b->{format} } @$list) {
-	next if $info->{vmid};
-	my $volid = $info->{volid};
-
-	printf "%-${maxlenname}s %5s %10d\n", $volid,
-	$info->{format}, $info->{size};
-    }
-};
-
 my $print_status = sub {
     my $res = shift;
 
-- 
2.11.0




More information about the pve-devel mailing list