1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F #5289: Remove unneeded code

This commit is contained in:
Ruben S. Montero 2021-06-15 11:24:19 +02:00
parent 3f171f3b5b
commit 0f130a1abd
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
2 changed files with 0 additions and 16 deletions

View File

@ -2188,11 +2188,6 @@ private:
*/
int parse_sched_action(std::string& error_str);
/**
* Assign id to sched actions without id
*/
void assign_sched_ids();
/**
* Encrypt all secret attributes
*/

View File

@ -570,9 +570,6 @@ module OpenNebula
vm_id = node['deploy_id']
vm = OpenNebula::VirtualMachine.new_with_id(vm_id,
@service.client)
rc = vm.info
if OpenNebula.is_error?(rc)
msg = "Role #{name} : VM #{vm_id} monitorization failed;"\
" #{rc.message}"
@ -583,14 +580,6 @@ module OpenNebula
@service.log_error(msg)
else
ids = vm.retrieve_elements('TEMPLATE/SCHED_ACTION/ID')
id = 0
if !ids.nil? && !ids.empty?
ids.map! {|e| e.to_i }
id = ids.max + 1
end
if do_offset
offset = (index / vms_per_period.to_i).floor
time_offset = offset * period.to_i