From b7cb6f51616a863a4ea0bb75e19da6209dd56646 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Tue, 7 Sep 2021 18:46:11 +0530 Subject: [PATCH] Remove multiple calls to tabulated-list-sort-key We current set the variable tabulated-list-sort-key multiple times. This isn't really needed. --- kubel.el | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kubel.el b/kubel.el index 6063a5d..5269e74 100644 --- a/kubel.el +++ b/kubel.el @@ -119,10 +119,6 @@ ("Age" 15 t)] "List format.") -(defconst kubel--list-sort-key - '("NAME" . nil) - "Sort table on this key.") - (defconst kubel--status-colors '(("Running" . "green") ("Healthy" . "green") @@ -1157,7 +1153,6 @@ DIRECTORY is optional for TRAMP support." (let ((entries (kubel--populate-list))) (setq tabulated-list-format (car entries)) (setq tabulated-list-entries (cadr entries))) ; TODO handle "No resource found" - (setq tabulated-list-sort-key kubel--list-sort-key) (setq tabulated-list-sort-key nil) (tabulated-list-init-header) (tabulated-list-print)