Maor Lipchuk has uploaded a new change for review.

Change subject: core: fix findbugs warnning
......................................................................

core: fix findbugs warnning

Remove unused snapshot parameter

Change-Id: Ic67cf42c652972a34580d613bbf0da5ed204c7f3
Signed-off-by: Maor Lipchuk <mlipc...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
1 file changed, 0 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/25/25525/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
index a910a6e..4a9b6a0 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
@@ -370,8 +370,6 @@
         VM vm = (VM) getEntity();
         if (vm != null)
         {
-            Snapshot snapshot = getPreview();
-
             Frontend.getInstance().runAction(VdcActionType.RestoreAllSnapshots,
                     new RestoreAllSnapshotsParameters(vm.getId(), 
SnapshotActionEnum.UNDO),
                     null,
@@ -384,8 +382,6 @@
         VM vm = (VM) getEntity();
         if (vm != null)
         {
-            Snapshot snapshot = getInPreview();
-
             Frontend.getInstance().runAction(VdcActionType.RestoreAllSnapshots,
                     new RestoreAllSnapshotsParameters(vm.getId(), 
SnapshotActionEnum.COMMIT),
                     null,


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

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

Reply via email to