mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-22 04:25:55 -04:00
Remove unused code
This commit is contained in:
parent
a4cf678b15
commit
8e7a90e8da
@ -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://([^/]+)/([^/]+)/(.+)")
|
||||
|
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user