changeset: 6700:2baed7154180
user:      Kevin McCarthy <ke...@8t8.us>
date:      Tue Jun 28 16:06:22 2016 -0700
link:      http://dev.mutt.org/hg/mutt/rev/2baed7154180

Remove unused SORT_DESC.

This came over with the sidebar patch, but I believe is only used by
the notmuch extension.

diffs (54 lines):

diff -r 5bac9dacae1d -r 2baed7154180 init.h
--- a/init.h    Tue Jun 28 15:59:09 2016 -0700
+++ b/init.h    Tue Jun 28 16:06:22 2016 -0700
@@ -2796,7 +2796,6 @@
   ** .dd alpha (alphabetically)
   ** .dd count (all message count)
   ** .dd date
-  ** .dd desc (description)
   ** .dd new (new message count)
   ** .dd size
   ** .dd unsorted
@@ -3811,7 +3810,6 @@
 const struct mapping_t SortSidebarMethods[] = {
   { "alpha",           SORT_PATH },
   { "count",           SORT_COUNT },
-  { "desc",            SORT_DESC },
   { "flagged",         SORT_FLAGGED },
   { "mailbox-order",   SORT_ORDER },
   { "name",            SORT_PATH },
diff -r 5bac9dacae1d -r 2baed7154180 sidebar.c
--- a/sidebar.c Tue Jun 28 15:59:09 2016 -0700
+++ b/sidebar.c Tue Jun 28 16:06:22 2016 -0700
@@ -439,7 +439,6 @@
   short ssm = (SidebarSortMethod & SORT_MASK);
   if ((ssm == SORT_COUNT)     ||
       (ssm == SORT_COUNT_NEW) ||
-      (ssm == SORT_DESC)      ||
       (ssm == SORT_FLAGGED)   ||
       (ssm == SORT_PATH))
     qsort (arr, arr_len, sizeof (*arr), cb_qsort_buffy);
@@ -873,7 +872,7 @@
 }
 
 /**
- * mutt_sb_set_open_buffy - Set the OpnBuffy based on a the global Context
+ * mutt_sb_set_open_buffy - Set the OpnBuffy based on the global Context
  *
  * Search through the list of mailboxes.  If a BUFFY has a matching path, set
  * OpnBuffy to it.
diff -r 5bac9dacae1d -r 2baed7154180 sort.h
--- a/sort.h    Tue Jun 28 15:59:09 2016 -0700
+++ b/sort.h    Tue Jun 28 16:06:22 2016 -0700
@@ -33,9 +33,8 @@
 #define SORT_SPAM      14
 #define SORT_COUNT     15
 #define SORT_COUNT_NEW 16
-#define SORT_DESC      17
-#define SORT_FLAGGED   18
-#define SORT_PATH      19
+#define SORT_FLAGGED   17
+#define SORT_PATH      18
 
 /* dgc: Sort & SortAux are shorts, so I'm bumping these bitflags up from
  * bits 4 & 5 to bits 8 & 9 to make room for more sort keys in the future. */

Reply via email to