mirror of
https://github.com/valkey-io/valkey.git
synced 2026-10-28 08:24:42 +08:00
geohash code cleanup (#4787)
While analyzing the valkey coverage reports, it was observed that the
`geohashDecodeWGS84` function is dead & unreachable through any code
path
This seems to have been the case since the following commit b96af595a
---------
Signed-off-by: Bara' Hasheesh <bara.hasheesh@gmail.com>
This commit is contained in:
1 parent
ff9481cfbe
commit
1db8edcbe1
2 files changed
-5
No files matched your search
@@ -193,10 +193,6 @@ int geohashDecodeType(const GeoHashBits hash, GeoHashArea *area) {
|
||||
return geohashDecode(r[0], r[1], hash, area);
|
||||
}
|
||||
|
||||
int geohashDecodeWGS84(const GeoHashBits hash, GeoHashArea *area) {
|
||||
return geohashDecodeType(hash, area);
|
||||
}
|
||||
|
||||
int geohashDecodeAreaToLongLat(const GeoHashArea *area, double *xy) {
|
||||
if (!xy) return 0;
|
||||
xy[0] = (area->longitude.min + area->longitude.max) / 2;
|
||||
|
||||
@@ -131,7 +131,6 @@ int geohashDecode(const GeoHashRange long_range,
|
||||
const GeoHashBits hash,
|
||||
GeoHashArea *area);
|
||||
int geohashDecodeType(const GeoHashBits hash, GeoHashArea *area);
|
||||
int geohashDecodeWGS84(const GeoHashBits hash, GeoHashArea *area);
|
||||
int geohashDecodeAreaToLongLat(const GeoHashArea *area, double *xy);
|
||||
int geohashDecodeToLongLatType(const GeoHashBits hash, double *xy);
|
||||
int geohashDecodeToLongLatWGS84(const GeoHashBits hash, double *xy);
|
||||
|
||||
Reference in new issue
Block a user