From ce5d29fdca0e619260157bb20655279913d9f4a9 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Fri, 27 Sep 2002 23:54:03 +0000 Subject: [PATCH] removed unused variables git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1018 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/src/net/sourceforge/pmd/stat/StatisticalRule.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pmd/src/net/sourceforge/pmd/stat/StatisticalRule.java b/pmd/src/net/sourceforge/pmd/stat/StatisticalRule.java index e218267404..f5e57e119f 100644 --- a/pmd/src/net/sourceforge/pmd/stat/StatisticalRule.java +++ b/pmd/src/net/sourceforge/pmd/stat/StatisticalRule.java @@ -82,13 +82,7 @@ public abstract class StatisticalRule extends AbstractRule { } protected double getStdDev() { - double varTotal = 0.0; - - Iterator points = dataPoints.iterator(); - - double variance = ((totalSquared / count) - - (getMean() * getMean() )); - return Math.sqrt( variance ); + return Math.sqrt( ((totalSquared / count) - (getMean() * getMean() )) ); } protected SortedSet applyMinimumValue( SortedSet pointSet,