[gnome-todo] task: Trivial cleanup



commit 5d9736c1a4744a9ec3bfb475fe81255e56b85b68
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Sep 21 11:17:38 2019 -0300

    task: Trivial cleanup

 src/gtd-task.c | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/src/gtd-task.c b/src/gtd-task.c
index c79486d..cf46f3f 100644
--- a/src/gtd-task.c
+++ b/src/gtd-task.c
@@ -1213,17 +1213,13 @@ gtd_task_compare (GtdTask *t1,
         return retval;
     }
 
-  /*
-   * Zero, compare by subtask hierarchy
-   */
+  /* Compare by subtask hierarchy */
   retval = compare_by_subtasks (&t1, &t2);
 
   if (retval != 0)
     return retval;
 
-  /*
-   * Second, compare by ::due-date.
-   */
+  /* Compare by due date */
   dt1 = gtd_task_get_due_date (t1);
   dt2 = gtd_task_get_due_date (t2);
 
@@ -1244,9 +1240,7 @@ gtd_task_compare (GtdTask *t1,
   if (retval != 0)
     return retval;
 
-  /*
-   * Fourth, compare by ::creation-date.
-   */
+  /* Compare by creation date */
   dt1 = gtd_task_get_creation_date (t1);
   dt2 = gtd_task_get_creation_date (t2);
 
@@ -1265,9 +1259,7 @@ gtd_task_compare (GtdTask *t1,
   if (retval != 0)
     return retval;
 
-  /*
-   * If they're equal up to now, compare by title.
-   */
+  /* If they're equal up to now, compare by title */
   txt1 = txt2 = NULL;
 
   txt1 = g_utf8_casefold (gtd_task_get_title (t1), -1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]