From 81b291da0c846f9c1b299fc08408af052f08833d Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Fri, 5 Jun 2020 16:39:52 -0400 Subject: [PATCH] Remove the Hardware#m_bios method. --- app/models/hardware.rb | 8 -------- lib/vmdb_helper.rb | 1 - 2 files changed, 9 deletions(-) diff --git a/app/models/hardware.rb b/app/models/hardware.rb index 1f51e3cca69..d6be3e7f157 100644 --- a/app/models/hardware.rb +++ b/app/models/hardware.rb @@ -210,14 +210,6 @@ def m_memory(_parent, xmlNode, _deletes) self.memory_mb = xmlNode.attributes["memsize"] end - def m_bios(_parent, xmlNode, _deletes) - new_bios = MiqUUID.clean_guid(xmlNode.attributes["bios"]) - self.bios = new_bios.nil? ? xmlNode.attributes["bios"] : new_bios - - new_bios = MiqUUID.clean_guid(xmlNode.attributes["location"]) - self.bios_location = new_bios.nil? ? xmlNode.attributes["location"] : new_bios - end - def m_vm(parent, xmlNode, _deletes) xmlNode.each_element do |e| self.guest_os = e.attributes["guestos"] if e.name == "guestos" diff --git a/lib/vmdb_helper.rb b/lib/vmdb_helper.rb index a1e49c76e65..f4811d226cd 100644 --- a/lib/vmdb_helper.rb +++ b/lib/vmdb_helper.rb @@ -1,5 +1,4 @@ require 'miq-extensions' -require 'miq-uuid' require 'ostruct' require 'fileutils'