From 965ffa1312e11c56d206f48403e14ab519da261b Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Wed, 3 Jan 2024 12:08:31 +0100 Subject: [PATCH] Remove unused code --- toot/utils/__init__.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/toot/utils/__init__.py b/toot/utils/__init__.py index 7bc5c77..a367ddb 100644 --- a/toot/utils/__init__.py +++ b/toot/utils/__init__.py @@ -73,19 +73,6 @@ def format_content(content): first = False -def domain_exists(name): - try: - socket.gethostbyname(name) - return True - except OSError: - return False - - -def assert_domain_exists(domain): - if not domain_exists(domain): - raise ConsoleError("Domain {} not found".format(domain)) - - EOF_KEY = "Ctrl-Z" if os.name == 'nt' else "Ctrl-D"