Repos / mcross / 9edf8e7050
commit 9edf8e7050ce83dc1ce1674b7a77c1cc74c65f48
Author: Bùi Thành Nhân <hi@imnhan.com>
Date: Sat May 16 16:55:53 2020 +0700
remove unused parse_absolute_url() function
diff --git a/src/mcross/transport.py b/src/mcross/transport.py
index 8d1ff3f..ae103f5 100644
--- a/src/mcross/transport.py
+++ b/src/mcross/transport.py
@@ -33,12 +33,6 @@ def _parse_resp_header(header, pattern=re.compile(r"^(\d\d)\s+(.{,1024})\r\n$"))
return status, meta
-def parse_absolute_url(absolute_url):
- assert absolute_url.startswith("gemini://"), f"Malformed url: {absolute_url}"
- parsed = urlparse(absolute_url)
- return parsed
-
-
# TODO: GeminiUrl's context-aware parse() method probably doesn't belong
# in a "transport" module.