chore: drop unused code

This commit is contained in:
aclist 2026-08-28 16:07:06 +09:00
parent b4125c5a51
commit 572ac5d7ce
2 changed files with 0 additions and 8 deletions

View File

@ -84,6 +84,5 @@ class CalcDist:
except Exception:
return None
# TODO: handle failed remote dist
haversine = Haversine(local.lat, local.lon, remote.lat, remote.lon)
return haversine

View File

@ -127,10 +127,3 @@ def is_valid_port(port: str) -> bool:
if not port.isdigit() or int(port) == 0 or int(port[0]) == 0 or int(port) > 65535:
return True
return False
@deprecated("use ips.csv")
def get_local_coords(ip: str) -> str:
url = COORDS_API + "/" + ip
# local res=$(curl -Ls "$url" | jq -r '"\(.lat)\n\(.lon)"')
return url