mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
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.
This commit is contained in:
parent
3961071b20
commit
1e6bb9ef0c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user