aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2013-10-05 16:40:12 +0200
committerBananeweizen <Bananeweizen@gmx.de>2013-10-05 16:40:12 +0200
commit2fc7bcde91578f7132a0503d4f14c1ad8242b21d (patch)
tree284a23f3e35e5756440f15230d1083aefb705b08 /main/src/cgeo/geocaching/connector
parent48dab7615f8ffe60a55441373dbd0632b9b6c3d7 (diff)
downloadcgeo-2fc7bcde91578f7132a0503d4f14c1ad8242b21d.zip
cgeo-2fc7bcde91578f7132a0503d4f14c1ad8242b21d.tar.gz
cgeo-2fc7bcde91578f7132a0503d4f14c1ad8242b21d.tar.bz2
refactoring: remove unused code
Diffstat (limited to 'main/src/cgeo/geocaching/connector')
-rw-r--r--main/src/cgeo/geocaching/connector/gc/Tile.java5
-rw-r--r--main/src/cgeo/geocaching/connector/gc/UTFGrid.java16
2 files changed, 0 insertions, 21 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/Tile.java b/main/src/cgeo/geocaching/connector/gc/Tile.java
index 4ed53c9..623730a 100644
--- a/main/src/cgeo/geocaching/connector/gc/Tile.java
+++ b/main/src/cgeo/geocaching/connector/gc/Tile.java
@@ -29,11 +29,6 @@ import java.util.Set;
*/
public class Tile {
- public static final double LATITUDE_MIN = -85.05112878;
- public static final double LATITUDE_MAX = 85.05112878;
- public static final double LONGITUDE_MIN = -180;
- public static final double LONGITUDE_MAX = 180;
-
public static final int TILE_SIZE = 256;
public static final int ZOOMLEVEL_MAX = 18;
public static final int ZOOMLEVEL_MIN = 0;
diff --git a/main/src/cgeo/geocaching/connector/gc/UTFGrid.java b/main/src/cgeo/geocaching/connector/gc/UTFGrid.java
index 6d20eb6..89a3de8 100644
--- a/main/src/cgeo/geocaching/connector/gc/UTFGrid.java
+++ b/main/src/cgeo/geocaching/connector/gc/UTFGrid.java
@@ -12,22 +12,6 @@ public final class UTFGrid {
public static final int GRID_MAXX = 63;
public static final int GRID_MAXY = 63;
- /**
- * Convert a value from a JSON grid object into an id that can be used as an index
- * It's not used at the moment due to optimizations.
- * But maybe we need it some day...
- */
- public static short getUTFGridId(final char value) {
- short result = (short) value;
- if (result >= 93) {
- result--;
- }
- if (result >= 35) {
- result--;
- }
- return (short) (result - 32);
- }
-
/** Calculate from a list of positions (x/y) the coords */
public static UTFGridPosition getPositionInGrid(List<UTFGridPosition> positions) {
int minX = GRID_MAXX;