web/modules/rhn/RHN/DB/Server/HwDevice.pm | 30 ------------------------------
1 file changed, 30 deletions(-)
New commits:
commit 2cff7c3333222568b674af76669aa2ace6bfeac3
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Tue Jan 5 15:42:25 2010 +0100
lookup_hw_device is not used anywhere, removing.
diff --git a/web/modules/rhn/RHN/DB/Server/HwDevice.pm
b/web/modules/rhn/RHN/DB/Server/HwDevice.pm
index 6b0db3e..4a87b4d 100644
--- a/web/modules/rhn/RHN/DB/Server/HwDevice.pm
+++ b/web/modules/rhn/RHN/DB/Server/HwDevice.pm
@@ -49,36 +49,6 @@ sub _blank_hw_device {
return $self;
}
-# returns one hwdevice object from it's key
-sub lookup_hw_device {
- my $class = shift;
- my $id = shift;
-
- my $dbh = RHN::DB->connect;
-
- my $query;
- my $sth;
-
- $query = $h->select_query("H.ID = ?");
- $sth = $dbh->prepare($query);
- $sth->execute($id);
-
- my @columns = $sth->fetchrow;
- $sth->finish;
-
- my $ret;
- if ($columns[0]) {
- $ret = $class->_blank_hw_device;
- $ret->{"__".$_."__"} = shift @columns foreach
$h->method_names;
- }
- else {
- local $" = ", ";
- die "Error loading hw device $id; no ID? (@columns)";
- }
-
- return $ret;
-}
-
# returns an array of hwdevice objects given a server id
sub lookup_hw_devices_by_server {
my $class = shift;
Show replies by date