Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
db3df441
Commit
db3df441
authored
Jun 29, 2015
by
antirez
Browse files
Geo: debugging printf calls removed.
parent
6d21027a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/geo.c
View file @
db3df441
...
@@ -476,10 +476,6 @@ static void geoRadiusGeneric(redisClient *c, int type) {
...
@@ -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) {
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment