remove unused method
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 18 Jan 2024 17:53:30 +0000 (18:53 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 18 Jan 2024 17:53:30 +0000 (18:53 +0100)
src/main/java/eu/etaxonomy/cdm/vaadin/view/distributionStatus/DistributionTablePresenter.java

index f5ee038627f25b11c9728d0036f6c4f9ee2d84ec..2ec81886ad1e9cf7260a8daff69956469b6266d0 100644 (file)
@@ -13,7 +13,6 @@ import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.Comparator;
-import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
@@ -411,27 +410,6 @@ private List<String> getAbbreviatedNamedAreas() {
     return list;
 }
 
-// TODO: Currently unused. Remove?
-private HashMap<DescriptionElementBase, Distribution> getDistribution(DefinedTermBase dt, Taxon taxon) {
-
-    boolean includeUnpublished = true;
-    Set<Feature> setFeature = new HashSet<>(Arrays.asList(Feature.DISTRIBUTION()));
-    List<DescriptionElementBase> listTaxonDescription = CdmSpringContextHelper.getDescriptionService()
-            .listDescriptionElementsForTaxon(taxon, setFeature, null, includeUnpublished, null, null, DESCRIPTION_INIT_STRATEGY);
-    HashMap<DescriptionElementBase, Distribution> map = null;
-    for(DescriptionElementBase deb : listTaxonDescription){
-        if(deb instanceof Distribution){
-            Distribution db = (Distribution)deb;
-            String titleCache = dt.getTitleCache();
-            if(db.getArea().getTitleCache().equalsIgnoreCase(titleCache)){
-                map = new HashMap<DescriptionElementBase, Distribution>();
-                map.put(deb, db);
-            }
-        }
-    }
-    return map;
-}
-
 public LazyQueryContainer getAreaDistributionStatusContainer() {
     List<UUID> nodeUuids = getAllNodes().stream().map(n -> n.getUuid()).collect(Collectors.toCollection(ArrayList::new));
     List<NamedArea> namedAreas = getChosenAreas();