Ignore:
Timestamp:
2018-03-19T00:10:50+01:00 (6 years ago)
Author:
Don-vip
Message:

see #16084 - remove unused code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r13539 r13542  
    712712    }
    713713
    714     /**
    715      *
    716      * @param searchLayer which layer do we look for
    717      * @param projectionCode projection code to match
    718      * @return Collection of layers matching the name of the layer and projection, or only projection if name is not provided
    719      */
    720     private Collection<Layer> getLayers(WMTSDefaultLayer searchLayer, String projectionCode) {
    721         Collection<Layer> ret = new ArrayList<>();
    722         if (this.layers != null) {
    723             for (Layer layer: this.layers) {
    724                 if ((searchLayer == null || (// if it's null, then accept all layers
    725                         searchLayer.getLayerName().equals(layer.identifier)))
    726                         && (projectionCode == null || // if it's null, then accept any projection
    727                         projectionCode.equals(layer.tileMatrixSet.crs))) {
    728                     ret.add(layer);
    729                 }
    730             }
    731         }
    732         return ret;
    733     }
    734 
    735714    @Override
    736715    public int getTileSize() {
Note: See TracChangeset for help on using the changeset viewer.