diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-05 06:58:19 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-05 06:58:19 -0500 |
| commit | 109d359c4411e8c815e1a2f683519b9e222c55d5 (patch) | |
| tree | 8a5683bcc8c3ef02d5e5390d4223768b9955868f | |
| parent | 1c646341d041965264cd6af983ef3f081c2b6218 (diff) | |
| download | dotemacs-109d359c4411e8c815e1a2f683519b9e222c55d5.tar.gz dotemacs-109d359c4411e8c815e1a2f683519b9e222c55d5.zip | |
refactor(calendar-sync): remove dead function calendar-sync--timezone-name
Function was defined but never called anywhere in the codebase.
| -rw-r--r-- | modules/calendar-sync.el | 5 | ||||
| -rw-r--r-- | tests/test-calendar-sync.el | 8 |
2 files changed, 1 insertions, 12 deletions
diff --git a/modules/calendar-sync.el b/modules/calendar-sync.el index 7be2bd16..64c3baac 100644 --- a/modules/calendar-sync.el +++ b/modules/calendar-sync.el @@ -159,11 +159,6 @@ Returns negative for west of UTC, positive for east. Example: -21600 for CST (UTC-6), -28800 for PST (UTC-8)." (car (current-time-zone))) -(defun calendar-sync--timezone-name () - "Get human-readable timezone name. -Returns string like 'CST' or 'PST'." - (cadr (current-time-zone))) - (defun calendar-sync--format-timezone-offset (offset) "Format timezone OFFSET (in seconds) as human-readable string. Example: -21600 → 'UTC-6' or 'UTC-6:00'." diff --git a/tests/test-calendar-sync.el b/tests/test-calendar-sync.el index 144d6486..b912c132 100644 --- a/tests/test-calendar-sync.el +++ b/tests/test-calendar-sync.el @@ -508,13 +508,7 @@ Valid events should be parsed, invalid ones skipped." (should (>= offset (* -12 3600))) (should (<= offset (* 14 3600))))) -(ert-deftest test-calendar-sync--timezone-name-returns-string () - "Test that timezone name returns a string." - (let ((name (calendar-sync--timezone-name))) - ;; Should be a string - (should (stringp name)) - ;; Should not be empty - (should (> (length name) 0)))) + (ert-deftest test-calendar-sync--format-timezone-offset-handles-negative () "Test formatting negative timezone offsets (west of UTC)." |
