]> source.dussan.org Git - sonarqube.git/commitdiff
Remove useless code
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 16 May 2013 07:49:49 +0000 (09:49 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 16 May 2013 07:49:49 +0000 (09:49 +0200)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueCountersDecorator.java

index 080dccfbef3e4b042f4bfa7acfbe50f76897e745..3f82358a1db6d425fa128f171d427e418fea88c5 100644 (file)
@@ -95,7 +95,6 @@ public class IssueCountersDecorator implements Decorator {
       ListMultimap<RulePriority, Issue> issuesPerSeverities = ArrayListMultimap.create();
       int countUnassigned = 0;
       int falsePositives = 0;
-      int unplanned = 0;
 
       for (Issue issue : issues) {
         severitiesBag.add(RulePriority.valueOf(issue.severity()));
@@ -109,10 +108,6 @@ public class IssueCountersDecorator implements Decorator {
         if (Issue.RESOLUTION_FALSE_POSITIVE.equals(issue.resolution())) {
           falsePositives++;
         }
-
-        if (issue.actionPlanKey() == null) {
-          unplanned++;
-        }
       }
 
       for (RulePriority ruleSeverity : RulePriority.values()) {