From 7067f231db64e307d4a3d56e652e189cf4692ef0 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 5 Apr 2026 06:58:19 -0500 Subject: refactor(calendar-sync): remove dead function calendar-sync--timezone-name Function was defined but never called anywhere in the codebase. --- modules/calendar-sync.el | 5 ----- tests/test-calendar-sync.el | 8 +------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/modules/calendar-sync.el b/modules/calendar-sync.el index fc9736b5..d9889b08 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)." -- cgit v1.2.3