[PATCH] We only need to know what's going on upstream

Wald Commits scm-commit at wald.intevation.org
Mon Sep 8 12:25:50 CEST 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1410171947 -7200
# Node ID cb25ea4d455159bf241eb49a050cd5688b4ce8c3
# Parent  204905c16ade24803211f822ec7e652c0273ce5a
We only need to know what's going on upstream.

diff -r 204905c16ade -r cb25ea4d4551 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java	Mon Sep 08 12:21:32 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java	Mon Sep 08 12:25:47 2014 +0200
@@ -221,7 +221,6 @@
 
         private List<List<Value>> grainFractions;
 
-        private Station next;
         private Station prev;
 
         public Station() {
@@ -259,14 +258,6 @@
             return (this.type & type) != 0;
         }
 
-        public void setNext(Station next) {
-            this.next = next;
-        }
-
-        public Station getNext() {
-            return next;
-        }
-
         public void setPrev(Station prev) {
             this.prev = prev;
         }
@@ -299,15 +290,6 @@
             return a;
         }
 
-        public Station nextByType(int type) {
-            for (Station curr = this; curr != null; curr = curr.getNext()) {
-                if (curr.isType(type)) {
-                    return curr;
-                }
-            }
-            return null;
-        }
-
         public Station prevByType(int type) {
             for (Station curr = this; curr != null; curr = curr.getPrev()) {
                 if (curr.isType(type)) {
@@ -431,13 +413,11 @@
     private void wireNeighbors(boolean kmUp) {
         if (kmUp) {
             for (int i = stations.length - 1; i > 0; --i) {
-                stations[i].setNext(stations[i-1]);
                 stations[i-1].setPrev(stations[i]);
             }
         }
         else {
             for (int i = 1; i < stations.length; ++i) {
-                stations[i-1].setNext(stations[i]);
                 stations[i].setPrev(stations[i-1]);
             }
         }


More information about the Dive4Elements-commits mailing list