mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Geo: debugging printf calls removed.
This commit is contained in:
parent
6d21027a23
commit
db3df44184
@ -476,10 +476,6 @@ static void geoRadiusGeneric(redisClient *c, int type) {
|
|||||||
GeoHashRadius georadius =
|
GeoHashRadius georadius =
|
||||||
geohashGetAreasByRadiusWGS84(xy[0], xy[1], radius_meters);
|
geohashGetAreasByRadiusWGS84(xy[0], xy[1], radius_meters);
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
printf("Searching with step size: %d\n", georadius.hash.step);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Search the zset for all matching points */
|
/* Search the zset for all matching points */
|
||||||
geoArray *ga = geoArrayCreate();
|
geoArray *ga = geoArrayCreate();
|
||||||
membersOfAllNeighbors(zobj, georadius, xy[0], xy[1], radius_meters, ga);
|
membersOfAllNeighbors(zobj, georadius, xy[0], xy[1], radius_meters, ga);
|
||||||
@ -618,9 +614,6 @@ void geoEncodeCommand(redisClient *c) {
|
|||||||
GeoHashFix52Bits bits = geohashAlign52Bits(geohash);
|
GeoHashFix52Bits bits = geohashAlign52Bits(geohash);
|
||||||
|
|
||||||
/* Decode the hash so we can return its bounding box */
|
/* Decode the hash so we can return its bounding box */
|
||||||
#ifdef DEBUG
|
|
||||||
printf("Decoding with step size: %d\n", geohash.step);
|
|
||||||
#endif
|
|
||||||
GeoHashArea area;
|
GeoHashArea area;
|
||||||
geohashDecodeWGS84(geohash, &area);
|
geohashDecodeWGS84(geohash, &area);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user