1. Removed redundant variable
This commit is contained in:
parent
8c798e40d1
commit
0607ce9128
2 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue