From 2b231ad2f99fd2ac68ceda0c0f7cbb814bfd4655 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Tue, 22 Jun 2021 09:40:32 -0400 Subject: [PATCH] Remove unused VmOrTemplate#validate_scan This was last used (incorrectly) by the API to check if a VM supports smartstate. This has been fixed in ManageIQ/manageiq-api#1050 --- app/models/vm_or_template/operations.rb | 1 - app/models/vm_or_template/operations/smart_state.rb | 9 --------- 2 files changed, 10 deletions(-) delete mode 100644 app/models/vm_or_template/operations/smart_state.rb diff --git a/app/models/vm_or_template/operations.rb b/app/models/vm_or_template/operations.rb index 7b4ab061169..39a0e988c4a 100644 --- a/app/models/vm_or_template/operations.rb +++ b/app/models/vm_or_template/operations.rb @@ -5,7 +5,6 @@ module VmOrTemplate::Operations include_concern 'Power' include_concern 'Relocation' include_concern 'Snapshot' - include_concern 'SmartState' alias_method :ruby_clone, :clone diff --git a/app/models/vm_or_template/operations/smart_state.rb b/app/models/vm_or_template/operations/smart_state.rb deleted file mode 100644 index ca3c4d9b4ea..00000000000 --- a/app/models/vm_or_template/operations/smart_state.rb +++ /dev/null @@ -1,9 +0,0 @@ -class VmOrTemplate - module Operations - module SmartState - def validate_scan - {:available => true, :message => nil} - end - end - end -end