summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-05 06:58:19 -0500
committerCraig Jennings <c@cjennings.net>2026-04-05 06:58:19 -0500
commit7067f231db64e307d4a3d56e652e189cf4692ef0 (patch)
treeceff079d7a8b74ed4d07750a2e355fcc4551a34c
parent7eb6c0692d48b8c3d01efba8abcd2bfdfaa7cd31 (diff)
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.el5
-rw-r--r--tests/test-calendar-sync.el8
2 files changed, 1 insertions, 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)."