Moti Asayag has uploaded a new change for review. Change subject: engine: Remove dead code ......................................................................
engine: Remove dead code Change-Id: I7a63ea48a109604542165347ffc00b0693c252a5 Signed-off-by: Moti Asayag <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java 1 file changed, 8 insertions(+), 17 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/98/29098/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java index 576006d..895f6a3 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java @@ -1,5 +1,13 @@ package org.ovirt.engine.core.bll.tasks; +import java.util.Map; +import java.util.concurrent.Callable; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; + import org.ovirt.engine.core.bll.CommandBase; import org.ovirt.engine.core.bll.CommandsFactory; import org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack; @@ -18,14 +26,6 @@ import org.ovirt.engine.core.utils.timer.OnTimerMethodAnnotation; import org.ovirt.engine.core.utils.timer.SchedulerUtil; import org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl; - -import java.util.Map; -import java.util.concurrent.Callable; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.Future; -import java.util.concurrent.TimeUnit; public class CommandExecutor { @@ -121,15 +121,6 @@ callBack.executed(result); } return result; - } - - private void clearCompletedCommands() { - for (Guid cmdId : cmdCallBackMap.keySet()) { - if (CommandStatus.SUCCEEDED.equals(coco.getCommandStatus(cmdId)) || - CommandStatus.FAILED.equals(coco.getCommandStatus(cmdId))) { - cmdCallBackMap.remove(cmdId); - } - } } private void updateCommand(final CommandBase<?> command, -- To view, visit http://gerrit.ovirt.org/29098 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7a63ea48a109604542165347ffc00b0693c252a5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Moti Asayag <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
