[Dive4elements-commits] [PATCH 2 of 3] WQInputPanel: Removed unnecessary parameter from function

Wald Commits scm-commit at wald.intevation.org
Thu Feb 14 09:28:43 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1360830821 -3600
# Node ID cbe89b2ce3cd0556a2b6643c71ef7e3e0ff9e2ea
# Parent  0e6e44e6725f45597cc539bbd44beed7e858208d
WQInputPanel: Removed unnecessary parameter from function.

diff -r 0e6e44e6725f -r cbe89b2ce3cd flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Thu Feb 14 09:32:29 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Thu Feb 14 09:33:41 2013 +0100
@@ -1781,7 +1781,7 @@
      *
      * @return the name of the current river.
      */
-    protected String getRiverName(DataList[] data) {
+    protected String getRiverName() {
         ArtifactDescription adesc = artifact.getArtifactDescription();
         return adesc.getRiver();
     }
@@ -1795,7 +1795,7 @@
         DataList[] data = adescr.getOldData();
 
         double[]  mm = getMinMaxKM(data);
-        String river = getRiverName(data);
+        String river = getRiverName();
 
         wqInfoService.getWQInfo(locale, river, mm[0], mm[1],
             new AsyncCallback<WQInfoObject[]>() {


More information about the Dive4elements-commits mailing list