1. Removed redundant variable

This commit is contained in:
cdtank 2011-02-09 22:42:11 +00:00
parent 8c798e40d1
commit 0607ce9128
2 changed files with 1 additions and 5 deletions

View file

@ -123,7 +123,6 @@ public class CoAuthorshipVisCodeGenerator {
sparklineData.setNumOfYearsToBeRendered(numOfYearsToBeRendered);
int uniqueCoAuthorCounter = 0;
int renderedFullSparks = 0;
Set<Node> allCoAuthorsWithKnownAuthorshipYears = new HashSet<Node>();
List<YearToEntityCountDataElement> yearToUniqueCoauthorsCountDataTable = new ArrayList<YearToEntityCountDataElement>();
@ -146,7 +145,6 @@ public class CoAuthorshipVisCodeGenerator {
yearToUniqueCoauthorsCountDataTable.add(new YearToEntityCountDataElement(uniqueCoAuthorCounter,
publicationYearAsString,
currentUniqueCoAuthors));
renderedFullSparks += currentUniqueCoAuthors;
uniqueCoAuthorCounter++;
}
@ -156,7 +154,7 @@ public class CoAuthorshipVisCodeGenerator {
* Sparks that will be rendered in full mode will always be the one's which have any year
* associated with it. Hence.
* */
sparklineData.setRenderedSparks(renderedFullSparks);
sparklineData.setRenderedSparks(allCoAuthorsWithKnownAuthorshipYears.size());
sparklineData.setYearToEntityCountDataTable(yearToUniqueCoauthorsCountDataTable);

View file

@ -133,7 +133,6 @@ public class CoPIVisCodeGenerator {
sparklineData.setNumOfYearsToBeRendered(numOfYearsToBeRendered);
int uniqueCoPICounter = 0;
int renderedFullSparks = 0;
Set<CoPINode> allCoPIsWithKnownGrantShipYears = new HashSet<CoPINode>();
List<YearToEntityCountDataElement> yearToUniqueInvestigatorsCountDataTable = new ArrayList<YearToEntityCountDataElement>();
@ -156,7 +155,6 @@ public class CoPIVisCodeGenerator {
grantYearAsString,
currentUniqueCoPIs));
renderedFullSparks += currentUniqueCoPIs;
uniqueCoPICounter++;
}