Remove an unused field from the index structure

This commit is contained in:
Eric Fischer 2014-10-27 09:52:25 -07:00
parent 4b171c74b7
commit be94bd0dd5
2 changed files with 4 additions and 4 deletions

View File

@ -10,6 +10,8 @@ vector_tile.pb.cc vector_tile.pb.h: vector_tile.proto
PG=
H = $(shell find . '(' -name '*.h' -o -name '*.hh' ')')
tippecanoe: geojson.o jsonpull.o vector_tile.pb.o tile.o clip.o pool.o mbtiles.o geometry.o projection.o
g++ $(PG) -O3 -g -Wall -o $@ $^ -lm -lz -lprotobuf-lite -lsqlite3
@ -23,10 +25,10 @@ libjsonpull.a: jsonpull.o
ar rc $@ $^
ranlib $@
%.o: %.c
%.o: %.c $(H)
cc $(PG) -O3 -g -Wall -c $<
%.o: %.cc
%.o: %.cc $(H)
g++ $(PG) -O3 -g -Wall -c $<
clean:

2
tile.h
View File

@ -20,8 +20,6 @@ struct pool_val *deserialize_string(char **f, struct pool *p, int type);
struct index {
unsigned long long index;
long long fpos;
struct index *next;
};
long long write_tile(struct index *start, struct index *end, char *metabase, unsigned *file_bbox, int z, unsigned x, unsigned y, int detail, int basezoom, struct pool *file_keys, char *layername, sqlite3 *outdb, double droprate);