[pve-devel] r5503 - pve-storage/pve2/PVE/API2/Storage

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Feb 10 13:40:26 CET 2011


Author: dietmar
Date: 2011-02-10 13:40:26 +0100 (Thu, 10 Feb 2011)
New Revision: 5503

Modified:
   pve-storage/pve2/PVE/API2/Storage/Status.pm
Log:
remove unused code


Modified: pve-storage/pve2/PVE/API2/Storage/Status.pm
===================================================================
--- pve-storage/pve2/PVE/API2/Storage/Status.pm	2011-02-10 11:11:23 UTC (rev 5502)
+++ pve-storage/pve2/PVE/API2/Storage/Status.pm	2011-02-10 12:40:26 UTC (rev 5503)
@@ -11,9 +11,6 @@
 
 use base qw(PVE::RESTHandler);
 
-my @ctypes = qw(images vztmpl iso backup);
-
-
 __PACKAGE__->register_method ({
     name => 'index', 
     protected => 1,
@@ -37,8 +34,6 @@
     code => sub {
 	my ($param) = @_;
 
-	my $cts = $param->{content} ? [ $param->{content} ] : [ @ctypes ];
-	
 	my $node = $param->{node};
 
 	# fixme: verify $node
@@ -69,8 +64,6 @@
     code =>  sub {
 	my ($param) = @_;
 
-	my $cts = $param->{content} ? [ $param->{content} ] : [ @ctypes ];
-
 	my $node = $param->{node};
 	my $storeid = $param->{storage};
 




More information about the pve-devel mailing list