From 1e6bb9ef0c60c22eab9e8d334be9f83a5845b2bb Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 6 Jul 2016 16:39:23 +0200 Subject: 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. --- src/geohash_helper.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/geohash_helper.c') 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; -- cgit v1.2.1