]> xenbits.xensource.com Git - osstest.git/commitdiff
power: Osstest::PDU::*: reuse default new method where applicable
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 22 Jan 2019 14:59:48 +0000 (14:59 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 24 Jan 2019 18:20:37 +0000 (18:20 +0000)
These two modules both had the same `new' as `unsupported'.  Now that
we have `use parent' they can be removed.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/PDU/manual.pm
Osstest/PDU/xenuse.pm

index 78f24db9e27e2438e7f279f112ca8fce4401905b..7f955b90f225ea90e32d81b56a0f365086d920e9 100644 (file)
@@ -27,11 +27,6 @@ use parent qw(Osstest::PDU::unsupported);
 
 our $tty;
 
-sub new {
-    my ($class, $ho) = @_;
-    return bless { Host => $ho }, $class;
-}
-
 sub pdu_power_state {
     my ($mo, $on) = @_;
     my $onoff= $on ? "on" : "off";
index 2ce0dd2209b15a1b9db62dbafaf544afd2a35a98..981b6cd91eae90ba21b7d9b2459c5840b53173fd 100644 (file)
@@ -26,11 +26,6 @@ use IO::File;
 
 use parent qw(Osstest::PDU::unsupported);
 
-sub new {
-    my ($class, $ho) = @_;
-    return bless { Host => $ho }, $class;
-}
-
 sub pdu_power_state {
     my ($mo, $on) = @_;
     my $onoff= $on ? "on" : "off";