From: "Enrico Weigelt, metux IT consult" <enrico.weig...@gr13.net>

---
 src/net/sf/freecol/common/model/Map.java | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/src/net/sf/freecol/common/model/Map.java 
b/src/net/sf/freecol/common/model/Map.java
index d15ec879271..8d75ce781cb 100644
--- a/src/net/sf/freecol/common/model/Map.java
+++ b/src/net/sf/freecol/common/model/Map.java
@@ -1971,33 +1971,6 @@ public class Map extends FreeColGameObject implements 
Location {
     }
 
     /**
-     * Perform an action on each tile.
-     *
-     * @param consumer The {@code Consumer} action to perform.
-     */
-    public void forEachTile(Consumer<Tile> consumer) {
-        forEachTile(alwaysTrue(), consumer);
-    }
-
-    /**
-     * Perform an action on each tile that matches a predicate.
-     *
-     * @param predicate The {@code Predicate} to match.
-     * @param consumer The {@code Consumer} action to perform.
-     */
-    public void forEachTile(Predicate<Tile> predicate,
-                            Consumer<Tile> consumer) {
-        final int hgt = getHeight(), wid = getWidth();
-        for (int y = 0; y < hgt; y++) {
-            for (int x = 0; x < wid; x++) {
-                if (predicate.test(this.tiles[x][y])) {
-                    consumer.accept(this.tiles[x][y]);
-                }
-            }
-        }
-    }
-
-    /**
      * Iterates through a rectangular subpart of the Map.
      * Intentionally avoids calling methods doing redundant checks,
      * which would slow down map display.
-- 
2.11.0.rc0.7.gbe5a750


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Freecol-developers mailing list
Freecol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freecol-developers

Reply via email to