changeset 9752:a41f9c355204 3.2.x

Remove unused parameter
author Tom Gottfried <tom@intevation.de>
date Tue, 11 Oct 2022 12:40:36 +0200
parents 308a0d822d18
children 7227621f8496
files artifacts/src/main/java/org/dive4elements/river/artifacts/RiverAxisArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSBuildingsArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFixpointsArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodmapsArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodmarksArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodplainArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHWSLinesArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHWSPointsArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHydrBoundaryArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHydrBoundaryPolyArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSJettiesArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSKmArtifact.java artifacts/src/main/java/org/dive4elements/river/artifacts/WMSQPSArtifact.java artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java
diffstat 15 files changed, 15 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/RiverAxisArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/RiverAxisArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -95,7 +95,7 @@
         @Override
         protected String getUrl() {
             if (isUnofficial()) {
-                return RiverUtils.getUserWMSUrl(artifact.identifier());
+                return RiverUtils.getUserWMSUrl();
             } else {
                 return RiverUtils.getRiverWMSUrl();
             }
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSBuildingsArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSBuildingsArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -77,7 +77,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFixpointsArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFixpointsArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -81,7 +81,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodmapsArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodmapsArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -81,7 +81,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodmarksArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodmarksArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -80,7 +80,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodplainArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodplainArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -85,7 +85,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHWSLinesArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHWSLinesArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -97,7 +97,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHWSPointsArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHWSPointsArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -97,7 +97,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHydrBoundaryArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHydrBoundaryArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -82,7 +82,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHydrBoundaryPolyArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHydrBoundaryPolyArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -82,7 +82,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSJettiesArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSJettiesArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -81,7 +81,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSKmArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSKmArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -118,7 +118,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSQPSArtifact.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSQPSArtifact.java	Tue Oct 11 12:40:36 2022 +0200
@@ -78,7 +78,7 @@
 
         @Override
         protected String getUrl() {
-            return RiverUtils.getUserWMSUrl(artifact.identifier());
+            return RiverUtils.getUserWMSUrl();
         }
 
         @Override
--- a/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java	Tue Oct 11 12:40:36 2022 +0200
@@ -611,11 +611,9 @@
      * Returns the URL of user mapfile for the owner of Artifact
      * <i>artifactId</i>.
      *
-     * @param artifactId The UUID of an artifact.
-     *
      * @return the URL of the user wms.
      */
-    public static String getUserWMSUrl(String artifactId) {
+    public static String getUserWMSUrl() {
         String url = getXPathString(XPATH_MAPSERVER_URL);
         url = url.endsWith("/") ? url + "user-wms" : url + "/" + "user-wms";
 
--- a/artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java	Tue Oct 11 11:42:09 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java	Tue Oct 11 12:40:36 2022 +0200
@@ -77,7 +77,7 @@
     }
 
     protected String getUrl() {
-        return RiverUtils.getUserWMSUrl(artifact.identifier());
+        return RiverUtils.getUserWMSUrl();
     }
 
     protected String getSrid() {

http://dive4elements.wald.intevation.org