Commit fd6eea4d authored by patrick.lambert's avatar patrick.lambert
Browse files

remove unused method

parent 8e15f57c
......@@ -105,13 +105,6 @@ public class Basin implements Position, Comparable<Basin> {
*/
private Map<DiadromousFishGroup, List<DiadromousFish>> fishPerGroup;
/**
* effective of fish present in the basin for each group
*
* @unit
*/
private Map<DiadromousFishGroup, Long> effectivePerGroup;
public Basin(int id, String name, double winterTemperature, double springTemperature, double summerTemperature,
double fallTemperature) {
this.id = id;
......@@ -124,7 +117,6 @@ public class Basin implements Position, Comparable<Basin> {
this.shape = new Path2D.Double();
fishPerGroup = new TreeMap<DiadromousFishGroup, List<DiadromousFish>>();
effectivePerGroup = new TreeMap<DiadromousFishGroup, Long>();
neighboursDistances = new TreeMap<Basin, Double>();
}
......@@ -136,7 +128,7 @@ public class Basin implements Position, Comparable<Basin> {
this.shape = new Path2D.Double();
fishPerGroup = new TreeMap<DiadromousFishGroup, List<DiadromousFish>>();
effectivePerGroup = new TreeMap<DiadromousFishGroup, Long>();
neighboursDistances = new TreeMap<Basin, Double>();
}
......@@ -187,18 +179,6 @@ public class Basin implements Position, Comparable<Basin> {
}
@Deprecated
public void updateEffective() {
for (DiadromousFishGroup group : fishPerGroup.keySet()) {
long eff = 0;
for (DiadromousFish fish : fishPerGroup.get(group)) {
eff += fish.getAmount();
}
effectivePerGroup.put(group, eff);
}
}
public Map<DiadromousFishGroup, List<DiadromousFish>> getFishPerGroup() {
return fishPerGroup;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment