From d9596fa9985edc3e516174fc0b2de1f35021734e Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 19 Jul 2026 14:55:42 -0700 Subject: [PATCH] gc old athena and uploader migration code --- openpilot/system/athena/athenad.py | 4 ---- openpilot/system/loggerd/uploader.py | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/openpilot/system/athena/athenad.py b/openpilot/system/athena/athenad.py index 91b12fc0a7..ef0561b122 100755 --- a/openpilot/system/athena/athenad.py +++ b/openpilot/system/athena/athenad.py @@ -488,10 +488,6 @@ def setRouteViewed(route: str) -> dict[str, int | str]: def startLocalProxy(global_end_event: threading.Event, remote_ws_uri: str, local_port: int) -> dict[str, int]: try: - # migration, can be removed once 0.9.8 is out for a while - if local_port == 8022: - local_port = 22 - if local_port not in LOCAL_PORT_WHITELIST: raise Exception("Requested local port not whitelisted") diff --git a/openpilot/system/loggerd/uploader.py b/openpilot/system/loggerd/uploader.py index e36b12ed6a..81f8ed1ba3 100755 --- a/openpilot/system/loggerd/uploader.py +++ b/openpilot/system/loggerd/uploader.py @@ -46,9 +46,7 @@ class FakeResponse: def get_directory_sort(d: str) -> list[str]: - # ensure old format is sorted sooner - o = ["0", ] if d.startswith("2024-") else ["1", ] - return o + [s.rjust(10, '0') for s in d.rsplit('--', 1)] + return [s.rjust(10, '0') for s in d.rsplit('--', 1)] def listdir_by_creation(d: str) -> list[str]: if not os.path.isdir(d):