Laszlo Hornyak has uploaded a new change for review.

Change subject: engine: remove unused VM constructor
......................................................................

engine: remove unused VM constructor

The long constructor of VM was not used, it was removed.

Change-Id: I5f562f0cc51a62a70b7c2ae57504e0d286f52ab2
Signed-off-by: Laszlo Hornyak <lhorn...@redhat.com>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
1 file changed, 0 insertions(+), 77 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/57/11957/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
index beb4dd6..e7ecd02 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
@@ -71,83 +71,6 @@
         this.setDiskSize(0);
     }
 
-    public VM(Guid vm_guid, String vm_name, int vm_mem_size_mb, Guid vmt_guid, 
VmOsType vm_os, String vm_description,
-            Guid vds_group_id, String vds_group_name, String 
vds_group_description, String vmt_name,
-            int vmt_mem_size_mb, VmOsType vmt_os, Date vmt_creation_date, int 
vmt_child_count,
-            int vmt_num_of_cpus, int vmt_num_of_sockets, int 
vmt_cpu_per_socket, String vmt_description, int status,
-            String vm_ip, String vm_host, Integer vm_pid, Date vm_last_up_time,
-            Date vm_last_boot_time, String guest_cur_user_name, Date 
guest_last_login_time,
-            Date guest_last_logout_time, String guest_os, Double cpu_user, 
Double cpu_sys, Integer vm_if_id_1, String vm_if_name_1,
-            Integer vm_line_rate_1, java.math.BigDecimal rx_dropped_1, 
java.math.BigDecimal rx_rate_1,
-            java.math.BigDecimal tx_dropped_1, java.math.BigDecimal tx_rate_1, 
Integer vm_if_id_2, String vm_if_name_2,
-            Integer vm_line_rate_2, java.math.BigDecimal rx_dropped_2, 
java.math.BigDecimal rx_rate_2,
-            java.math.BigDecimal tx_dropped_2, java.math.BigDecimal tx_rate_2, 
Double elapsed_time,
-            Integer usage_network_percent, Integer usage_mem_percent, Integer 
usage_cpu_percent, Guid run_on_vds,
-            Guid migrating_to_vds, String app_list, Integer display, String 
vm_domain, Date vm_creation_date,
-            String run_on_vds_name, String time_zone, Boolean acpi_enable, 
Integer session, String display_ip,
-            Integer display_type, Boolean kvm_enable, Integer boot_sequence, 
String vmt_time_zone,
-            Integer display_secure_port, Integer utc_diff, boolean 
is_stateless, String vds_cpu_name,
-            boolean fail_back, BootSequence default_boot_sequence, VmType 
vm_type,
-            int minAllocatedMem) {
-        this();
-
-        this.setId(vm_guid);
-        this.setVmName(vm_name);
-        this.setVmMemSizeMb(vm_mem_size_mb);
-        this.setVmtGuid(vmt_guid);
-        this.setVmDomain(vm_domain);
-        this.setVmOs(vm_os);
-        this.setVmCreationDate(vm_creation_date);
-        this.setVmDescription(vm_description);
-        this.setVdsGroupId(vds_group_id);
-        this.setVdsGroupName(vds_group_name);
-        this.setVdsGroupDescription(vds_group_description);
-        this.setVmtName(vmt_name);
-        this.setVmtMemSizeMb(vmt_mem_size_mb);
-        this.setVmtOs(vmt_os);
-        this.setVmtCreationDate(vmt_creation_date);
-        this.setVmtChildCount(vmt_child_count);
-        this.setVmtNumOfCpus(vmt_num_of_cpus);
-        this.setVmtDescription(vmt_description);
-        this.setVmtTimeZone(vmt_time_zone);
-        this.setStatus(VMStatus.forValue(status));
-        this.setVmIp(vm_ip);
-        this.setVmHost(vm_host);
-        this.setVmPid(vm_pid);
-        this.setLastStartTime(vm_last_boot_time);
-        this.setGuestCurrentUserName(guest_cur_user_name);
-        this.setGuestLastLoginTime(guest_last_login_time);
-        this.setGuestLastLogoutTime(guest_last_logout_time);
-        this.setGuestOs(guest_os);
-        this.setCpuUser(cpu_user);
-        this.setCpuSys(cpu_sys);
-        this.setElapsedTime(elapsed_time);
-        this.setUsageNetworkPercent(usage_network_percent);
-        this.setUsageMemPercent(usage_mem_percent);
-        this.setUsageCpuPercent(usage_cpu_percent);
-        this.setRunOnVds(run_on_vds);
-        this.setMigratingToVds(migrating_to_vds);
-        this.setAppList(app_list);
-        this.setDisplay(display);
-        this.setRunOnVdsName(run_on_vds_name);
-        this.setTimeZone(time_zone);
-        this.setAcpiEnable(acpi_enable);
-        this.setSession(SessionState.forValue(session));
-        this.setDisplayIp(display_ip);
-        this.setDisplayType(DisplayType.forValue(display_type));
-        this.setKvmEnable(kvm_enable);
-        this.setBootSequence(BootSequence.forValue(boot_sequence));
-        this.setVmtTimeZone(vmt_time_zone);
-        this.setDisplaySecurePort(display_secure_port);
-        this.setUtcDiff(utc_diff);
-        this.setStateless(is_stateless);
-        this.setVdsGroupCpuName(vds_cpu_name);
-        this.setFailBack(fail_back);
-        this.setDefaultBootSequence(default_boot_sequence);
-        this.setVmType(vm_type);
-        this.setMinAllocatedMem(minAllocatedMem);
-    }
-
     public VmPauseStatus getVmPauseStatus() {
         return this.vmDynamic.getPauseStatus();
     }


--
To view, visit http://gerrit.ovirt.org/11957
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f562f0cc51a62a70b7c2ae57504e0d286f52ab2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <lhorn...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to