From ab3265667c88adeb83da8ed6f9aa5a5c6138d660 Mon Sep 17 00:00:00 2001 From: esefxdz Date: Wed, 22 Jul 2026 19:44:32 +0300 Subject: [PATCH] remove dead _all_formats helper, fix docstring --- cogs/timestamp.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/cogs/timestamp.py b/cogs/timestamp.py index d5945d1..630662f 100644 --- a/cogs/timestamp.py +++ b/cogs/timestamp.py @@ -2,7 +2,7 @@ ###################################################################### Usage: /timestamp → opens a popup form (day, time, country) - and returns all Discord variants. + and returns the Long Date+Time Discord tag. """ import calendar as cal_mod import logging @@ -27,23 +27,6 @@ _WEEKDAY: dict[str, int] = { "friday": 4, "saturday": 5, "sunday": 6, } -# --------------------------------------------------------------------------- -# helpers -# --------------------------------------------------------------------------- - -def _all_formats(unix_ts: int) -> list[tuple[str, str]]: - """Return every Discord timestamp format for *unix_ts*.""" - return [ - ("Short Time", f""), - ("Long Time", f""), - ("Short Date", f""), - ("Long Date", f""), - ("Short Date+Time", f""), - ("Long Date+Time", f""), - ("Relative", f""), - ] - - # ========================================== # MODAL # ==========================================