Remove unused code

This commit is contained in:
Ivan Habunek 2023-12-07 10:08:10 +01:00
parent a4cf678b15
commit 8e7a90e8da
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
2 changed files with 0 additions and 22 deletions

View File

@ -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://([^/]+)/([^/]+)/(.+)")

View File

@ -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())