[PATCH 1 of 2] Remove unused parameter

Wald Commits scm-commit at wald.intevation.org
Tue Oct 11 17:38:01 CEST 2022


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1665484836 -7200
#      Tue Oct 11 12:40:36 2022 +0200
# Branch 3.2.x
# Node ID a41f9c355204eef14fe5d413990c9668408805f0
# Parent  308a0d822d1867ce9b3af137e429e8e5aa5c6183
Remove unused parameter

diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/RiverAxisArtifact.java
--- 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();
             }
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSBuildingsArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFixpointsArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodmapsArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodmarksArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSFloodplainArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHWSLinesArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHWSPointsArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHydrBoundaryArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSHydrBoundaryPolyArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSJettiesArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSKmArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSQPSArtifact.java
--- 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
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java
--- 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";
 
diff -r 308a0d822d18 -r a41f9c355204 artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java
--- 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() {


More information about the Dive4Elements-commits mailing list