cleanups
This commit is contained in:
parent
eb6778a907
commit
9c3c860da8
@ -34,17 +34,13 @@ import org.oscim.generator.JobTile;
|
||||
public class MapDatabase implements IMapDatabase {
|
||||
|
||||
private final static String PROJECTION = "Mercator";
|
||||
//private float[] mCoords = new float[20];
|
||||
//private short[] mIndex = new short[4];
|
||||
|
||||
GeometryBuffer mGeom = new GeometryBuffer(new float[20], new short[4]);
|
||||
|
||||
// private Tag[] mTags = { new Tag("boundary", "administrative"), new
|
||||
// Tag("admin_level", "2") };
|
||||
private final Tag[] mTags = { new Tag("natural", "water") };
|
||||
private final Tag[] mTagsWay = { new Tag("highway", "primary"), new Tag("name", "Highway Rd") };
|
||||
|
||||
// private Tag[] mNameTags;
|
||||
//private final Tag[] mTagsWay = { new Tag("highway", "primary"), new Tag("name", "Highway Rd") };
|
||||
|
||||
private final MapInfo mMapInfo =
|
||||
new MapInfo(new BoundingBox(-180, -90, 180, 90),
|
||||
|
||||
@ -75,8 +75,6 @@ public class GLRenderer implements GLSurfaceView.Renderer {
|
||||
|
||||
private static float[] mTileCoords;
|
||||
|
||||
private static float[] mDebugCoords;
|
||||
|
||||
public class Matrices {
|
||||
public final Matrix4 viewproj = new Matrix4();
|
||||
public final Matrix4 proj = new Matrix4();
|
||||
@ -186,7 +184,6 @@ public class GLRenderer implements GLSurfaceView.Renderer {
|
||||
|
||||
mMatrices = new Matrices();
|
||||
mTileCoords = new float[8];
|
||||
mDebugCoords = new float[8];
|
||||
|
||||
// tile fill coords
|
||||
short min = 0;
|
||||
|
||||
@ -20,14 +20,14 @@ public class Inlist<T extends Inlist<T>> {
|
||||
|
||||
public T next;
|
||||
|
||||
static <T extends Inlist<T>> int size(Inlist<T> list) {
|
||||
static <T extends Inlist<T>> int size(T list) {
|
||||
int count = 0;
|
||||
for (Inlist<T> l = list; l != null; l = l.next)
|
||||
count++;
|
||||
return count;
|
||||
}
|
||||
|
||||
public static <T extends Inlist<T>> Inlist<T> remove(Inlist<T> list, Inlist<T> item) {
|
||||
public static <T extends Inlist<T>> T remove(T list, T item) {
|
||||
if (item == list) {
|
||||
return item.next;
|
||||
}
|
||||
@ -44,12 +44,12 @@ public class Inlist<T extends Inlist<T>> {
|
||||
}
|
||||
|
||||
|
||||
static <T extends Inlist<T>> Inlist<T> prepend(T list, T item) {
|
||||
public static <T extends Inlist<T>> T prepend(T list, T item) {
|
||||
item.next = list;
|
||||
return item;
|
||||
}
|
||||
|
||||
static <T extends Inlist<T>> Inlist<T> append(T list, T item) {
|
||||
public static <T extends Inlist<T>> T append(T list, T item) {
|
||||
|
||||
if (debug) {
|
||||
if (item.next != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user