From 8e7a90e8daadac65d8a0a9ab54d13f3d2a85dc7d Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Thu, 7 Dec 2023 10:08:10 +0100 Subject: [PATCH] Remove unused code --- tests/integration/conftest.py | 6 ------ toot/output.py | 16 ---------------- 2 files changed, 22 deletions(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 528be6a..c0b14ee 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -151,12 +151,6 @@ def run_anon(runner): # Utils # ------------------------------------------------------------------------------ -strip_ansi_pattern = re.compile(r"\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])") - - -def strip_ansi(string): - return strip_ansi_pattern.sub("", string).strip() - def posted_status_id(out): pattern = re.compile(r"Toot posted: http://([^/]+)/([^/]+)/(.+)") diff --git a/toot/output.py b/toot/output.py index 8ac5390..e08bec0 100644 --- a/toot/output.py +++ b/toot/output.py @@ -264,14 +264,6 @@ def print_timeline(items: Iterable[Status]): print_divider() -notification_msgs = { - "follow": "{account} now follows you", - "mention": "{account} mentioned you in", - "reblog": "{account} reblogged your status", - "favourite": "{account} favourited your status", -} - - def print_notification(notification: Notification): print_notification_header(notification) if notification.status: @@ -304,14 +296,6 @@ def print_notification_header(notification: Notification): click.secho("Please report an issue to toot.", err=True, fg="yellow") -notification_msgs = { - "follow": "{account} now follows you", - "mention": "{account} mentioned you in", - "reblog": "{account} reblogged your status", - "favourite": "{account} favourited your status", -} - - def print_divider(char: str = "─"): click.echo(char * get_width())