diff options
author | antirez <antirez@gmail.com> | 2016-07-06 16:39:23 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-07-06 16:39:23 +0200 |
commit | 1e6bb9ef0c60c22eab9e8d334be9f83a5845b2bb (patch) | |
tree | 7632cd82b70bfcd2e534220f8f9c228f5c6ad3fc /src/geohash_helper.c | |
parent | 3961071b20c988bee574cbf28d6c3ba3b48e9567 (diff) | |
download | redis-1e6bb9ef0c60c22eab9e8d334be9f83a5845b2bb.tar.gz |
Remove dead code from geohash_helper.c.
The function removed also had potential bugs related to signess of the
expression, and is not used anyway.
Diffstat (limited to 'src/geohash_helper.c')
-rw-r--r-- | src/geohash_helper.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/geohash_helper.c b/src/geohash_helper.c index 6e8ca4070..a65759bc4 100644 --- a/src/geohash_helper.c +++ b/src/geohash_helper.c @@ -78,12 +78,6 @@ uint8_t geohashEstimateStepsByRadius(double range_meters, double lat) { return step; } -int geohashBitsComparator(const GeoHashBits *a, const GeoHashBits *b) { - /* If step not equal, compare on step. Else, compare on bits. */ - return a->step != b->step ? (a->step - b->step) : - ((int64_t)a->bits - (int64_t)b->bits); -} - int geohashBoundingBox(double longitude, double latitude, double radius_meters, double *bounds) { if (!bounds) return 0; |