diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-24 14:29:16 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-24 19:24:58 +0100 |
commit | 6c8f81a5f180e173e9297999a4f429d525362102 (patch) | |
tree | d1c389a731e1c2adbcc14915d83fff887d6165ea /sonar-squid | |
parent | bd940b0436c733b7d9edb7ceddf581185a954151 (diff) | |
download | sonarqube-6c8f81a5f180e173e9297999a4f429d525362102.tar.gz sonarqube-6c8f81a5f180e173e9297999a4f429d525362102.zip |
Squid for Java : remove unused code
Diffstat (limited to 'sonar-squid')
-rw-r--r-- | sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java | 9 | ||||
-rw-r--r-- | sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java | 4 |
2 files changed, 0 insertions, 13 deletions
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java b/sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java index fefa8aeeeb9..253e2ea5aa4 100644 --- a/sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java +++ b/sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java @@ -29,8 +29,6 @@ public enum Metric implements MetricDef { new NoAggregationFormula()), INSTABILITY(new InstabilityFormula()), DISTANCE(new DistanceFormula()), DIT(new NoAggregationFormula()), RFC(new NoAggregationFormula()), NOC(new NoAggregationFormula()), LCOM4(new NoAggregationFormula()), LCOM4_BLOCKS; - private double initValue = 0; - private CalculatedMetricFormula formula = null; private AggregationFormula aggregationFormula = new SumAggregationFormula(); @@ -52,10 +50,6 @@ public enum Metric implements MetricDef { this.formula = formula; } - public double getInitValue() { - return initValue; - } - public String getName() { return name(); } @@ -76,7 +70,4 @@ public enum Metric implements MetricDef { return formula; } - public AggregationFormula getAggregationFormula() { - return aggregationFormula; - } } diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java b/sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java index 03746b0c9e9..660b32afa52 100644 --- a/sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java +++ b/sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java @@ -23,8 +23,6 @@ public interface MetricDef { String getName(); - double getInitValue(); - boolean isCalculatedMetric(); boolean aggregateIfThereIsAlreadyAValue(); @@ -32,6 +30,4 @@ public interface MetricDef { boolean isThereAggregationFormula(); CalculatedMetricFormula getCalculatedMetricFormula(); - - AggregationFormula getAggregationFormula(); } |