diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-20 11:25:36 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-20 11:25:36 -0400 |
| commit | ed7e6b2a89fc31d2e23f2c53f8af49d3ff00586d (patch) | |
| tree | 71b01b243c0dc77bde73d0311a199a8ffed68e2d /tests/test-ui-theme-commands.el | |
| parent | bf70e90d04875905f8fc749df6fb3798a5080b57 (diff) | |
| download | dotemacs-ed7e6b2a89fc31d2e23f2c53f8af49d3ff00586d.tar.gz dotemacs-ed7e6b2a89fc31d2e23f2c53f8af49d3ff00586d.zip | |
refactor: remove dead wrappers and commented-out blocks
Drop cj/apply-browser-choice (browser-config) and cj/load-fallback-theme (ui-theme), orphaned wrappers with no caller that just duplicated logic the live paths already inline, plus their tests. Delete commented-out blocks: a duplicate contact capture template (org-contacts-config), a disabled personal-info-dir :init (help-config), a stale TODO setq (org-config), and an old commented regex (test-runner).
Diffstat (limited to 'tests/test-ui-theme-commands.el')
| -rw-r--r-- | tests/test-ui-theme-commands.el | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/test-ui-theme-commands.el b/tests/test-ui-theme-commands.el index 4e3ce7f28..1b273cf57 100644 --- a/tests/test-ui-theme-commands.el +++ b/tests/test-ui-theme-commands.el @@ -7,7 +7,6 @@ ;; cj/switch-themes ;; cj/save-theme-to-file ;; cj/get-active-theme-name -;; cj/load-fallback-theme ;;; Code: @@ -68,23 +67,6 @@ does not raise." (cj/save-theme-to-file)) (should (string-match-p "Cannot save theme" messaged)))) -;;; cj/load-fallback-theme - -(ert-deftest test-ui-theme-load-fallback-disables-then-loads () - "Normal: load-fallback-theme disables all then loads the fallback." - (let ((fallback-theme-name "modus-vivendi") - (custom-enabled-themes '(old-one old-two)) - disabled loaded) - (cl-letf (((symbol-function 'disable-theme) - (lambda (theme) (push theme disabled))) - ((symbol-function 'load-theme) - (lambda (theme &optional _no-confirm _no-enable) - (push theme loaded))) - ((symbol-function 'message) #'ignore)) - (cj/load-fallback-theme "boom")) - (should (equal (sort (copy-sequence disabled) #'string<) '(old-one old-two))) - (should (equal loaded '(modus-vivendi))))) - ;;; cj/switch-themes (ert-deftest test-ui-theme-switch-disables-loads-then-saves () |
