[pve-devel] r5364 - pve-common/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Jan 12 12:43:16 CET 2011


Author: dietmar
Date: 2011-01-12 12:43:16 +0100 (Wed, 12 Jan 2011)
New Revision: 5364

Modified:
   pve-common/trunk/RPCEnvironment.pm
Log:
remove unused code


Modified: pve-common/trunk/RPCEnvironment.pm
===================================================================
--- pve-common/trunk/RPCEnvironment.pm	2011-01-12 11:41:51 UTC (rev 5363)
+++ pve-common/trunk/RPCEnvironment.pm	2011-01-12 11:43:16 UTC (rev 5364)
@@ -72,7 +72,6 @@
     
     my $self = {
 	type => $type,
-	hostname => PVE::INotify::read_file('hostname'),
     };
 
     bless $self, $class;
@@ -114,38 +113,6 @@
     return $self->{user};
 }
 
-sub get_hostname {
-    my ($self) = @_;
-
-    return $self->{hostname};
-}
-
-sub get_nodelist {
-    my ($self) = @_;
-
-    # fixme: return soemthin useful
-    my $nodes = [ 
-	{ node => 'node0'},
-	{ node => 'node1'},
-	{ node => 'node2'},
-	{ node => 'node3'},
-	];
-    
-    return $nodes;
-}
-
-sub get_remote_node_ip {
-    my ($self, $node) = @_;
-
-    return undef if $node eq $self->{hostname};
-
-    die "implement me";
-
-    # fixme: check if node exists
-
-    # fixme: implement me
-}
-
 # UPID helper
 # WARN: $res->{filename} must not depend on PID, because we 
 # use it before we know the PID




More information about the pve-devel mailing list