From 682c3af710ef002d49153f6e8b9db273378ab78d Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Tue, 6 Jan 2015 16:38:41 +0100 Subject: [PATCH] CID-1114613 dead code removed --- .../src/com/cloud/deploy/ImplicitDedicationPlanner.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/deployment-planners/implicit-dedication/src/com/cloud/deploy/ImplicitDedicationPlanner.java b/plugins/deployment-planners/implicit-dedication/src/com/cloud/deploy/ImplicitDedicationPlanner.java index bc3ff0ab575..9500cac7a75 100644 --- a/plugins/deployment-planners/implicit-dedication/src/com/cloud/deploy/ImplicitDedicationPlanner.java +++ b/plugins/deployment-planners/implicit-dedication/src/com/cloud/deploy/ImplicitDedicationPlanner.java @@ -308,8 +308,6 @@ public class ImplicitDedicationPlanner extends FirstFitPlanner implements Deploy // But the host where system vms are running is marked as shared and still be part of empty Hosts. // The scenario will fail where actual Empty hosts and uservms not running host. return PlannerResourceUsage.Dedicated; - } else if (!preferred) { - return PlannerResourceUsage.Dedicated; } else { if (!allOtherHosts.isEmpty() && (hostsToAvoid == null || !hostsToAvoid.containsAll(allOtherHosts))) { return PlannerResourceUsage.Shared;