Lior Vernia has uploaded a new change for review.

Change subject: webadmin: Remove unused events from HostInterface
......................................................................

webadmin: Remove unused events from HostInterface

No relevant class was listening on these events, so this should be
dead code.

Change-Id: Ia7208d82a6a02540f4d258300c6545dd888d7fdb
Signed-off-by: Lior Vernia <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterface.java
1 file changed, 9 insertions(+), 68 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/65/36465/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterface.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterface.java
index afc57b6..1e10627 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterface.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostInterface.java
@@ -2,11 +2,8 @@
 
 import org.ovirt.engine.core.common.businessentities.network.InterfaceStatus;
 import 
org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface;
-import org.ovirt.engine.core.common.utils.ObjectUtils;
 import org.ovirt.engine.ui.uicommonweb.models.Model;
-import org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs;
 
-@SuppressWarnings("unused")
 public class HostInterface extends Model
 {
 
@@ -31,11 +28,7 @@
 
     public void setStatus(InterfaceStatus value)
     {
-        if (status != value)
-        {
-            status = value;
-            onPropertyChanged(new PropertyChangedEventArgs("Status")); 
//$NON-NLS-1$
-        }
+        status = value;
     }
 
     private String name;
@@ -47,11 +40,7 @@
 
     public void setName(String value)
     {
-        if (!ObjectUtils.objectsEqual(name, value))
-        {
-            name = value;
-            onPropertyChanged(new PropertyChangedEventArgs("Name")); 
//$NON-NLS-1$
-        }
+        name = value;
     }
 
     private String address;
@@ -63,11 +52,7 @@
 
     public void setAddress(String value)
     {
-        if (!ObjectUtils.objectsEqual(address, value))
-        {
-            address = value;
-            onPropertyChanged(new PropertyChangedEventArgs("Address")); 
//$NON-NLS-1$
-        }
+        address = value;
     }
 
     private String mac;
@@ -79,11 +64,7 @@
 
     public void setMAC(String value)
     {
-        if (!ObjectUtils.objectsEqual(mac, value))
-        {
-            mac = value;
-            onPropertyChanged(new PropertyChangedEventArgs("MAC")); 
//$NON-NLS-1$
-        }
+        mac = value;
     }
 
     private Integer speed;
@@ -95,15 +76,7 @@
 
     public void setSpeed(Integer value)
     {
-        if (speed == null && value == null)
-        {
-            return;
-        }
-        if (speed == null || !speed.equals(value))
-        {
-            speed = value;
-            onPropertyChanged(new PropertyChangedEventArgs("Speed")); 
//$NON-NLS-1$
-        }
+        speed = value;
     }
 
     private Double rxRate;
@@ -115,15 +88,7 @@
 
     public void setRxRate(Double value)
     {
-        if (rxRate == null && value == null)
-        {
-            return;
-        }
-        if (rxRate == null || !rxRate.equals(value))
-        {
-            rxRate = value;
-            onPropertyChanged(new PropertyChangedEventArgs("RxRate")); 
//$NON-NLS-1$
-        }
+        rxRate = value;
     }
 
     private Double rxDrop;
@@ -135,15 +100,7 @@
 
     public void setRxDrop(Double value)
     {
-        if (rxDrop == null && value == null)
-        {
-            return;
-        }
-        if (rxDrop == null || !rxDrop.equals(value))
-        {
-            rxDrop = value;
-            onPropertyChanged(new PropertyChangedEventArgs("RxDrop")); 
//$NON-NLS-1$
-        }
+        rxDrop = value;
     }
 
     private Double txRate;
@@ -155,15 +112,7 @@
 
     public void setTxRate(Double value)
     {
-        if (txRate == null && value == null)
-        {
-            return;
-        }
-        if (txRate == null || !txRate.equals(value))
-        {
-            txRate = value;
-            onPropertyChanged(new PropertyChangedEventArgs("TxRate")); 
//$NON-NLS-1$
-        }
+        txRate = value;
     }
 
     private Double txDrop;
@@ -175,15 +124,7 @@
 
     public void setTxDrop(Double value)
     {
-        if (txDrop == null && value == null)
-        {
-            return;
-        }
-        if (txDrop == null || !txDrop.equals(value))
-        {
-            txDrop = value;
-            onPropertyChanged(new PropertyChangedEventArgs("TxDrop")); 
//$NON-NLS-1$
-        }
+        txDrop = value;
     }
 
 }


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia7208d82a6a02540f4d258300c6545dd888d7fdb
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Lior Vernia <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to