Removing unused variables and cleaning up the code.

Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/acec5488
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/acec5488
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/acec5488

Branch: refs/heads/4.0.0-grouping
Commit: acec5488d30e59583ccce714a303a493915ced0b
Parents: ec15171
Author: Nirmal Fernando <[email protected]>
Authored: Wed Aug 20 08:42:26 2014 +0530
Committer: Nirmal Fernando <[email protected]>
Committed: Wed Aug 20 08:42:26 2014 +0530

----------------------------------------------------------------------
 .../message/receiver/health/AutoscalerHealthStatEventReceiver.java | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/acec5488/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java
index 2bcfb52..59b00b1 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java
@@ -629,7 +629,6 @@ public class AutoscalerHealthStatEventReceiver implements 
Runnable {
             }
                return null;
         }
-        String clusterId = member.getClusterId();
         AbstractMonitor monitor = 
AutoscalerContext.getInstance().getMonitor(member.getClusterId());
         if(null == monitor){
 
@@ -730,7 +729,6 @@ public class AutoscalerHealthStatEventReceiver implements 
Runnable {
             }
             // start a new member in the same Partition
             String partitionId = monitor.getPartitionOfMember(memberId);
-            Partition partition = 
monitor.getDeploymentPolicy().getPartitionById(partitionId);
             PartitionContext partitionCtxt = 
nwPartitionCtxt.getPartitionCtxt(partitionId);
 
             if(!partitionCtxt.activeMemberExist(memberId)){

Reply via email to