[gnome-todo] todo-txt: Improve more code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] todo-txt: Improve more code
- Date: Thu, 14 Jun 2018 02:20:01 +0000 (UTC)
commit cb759070c4432d6c86f63dc8346b28d8b7b9ff82
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jun 13 23:19:15 2018 -0300
todo-txt: Improve more code
plugins/todo-txt/gtd-todo-txt-parser.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/plugins/todo-txt/gtd-todo-txt-parser.c b/plugins/todo-txt/gtd-todo-txt-parser.c
index 6ba1ff0..ca00271 100644
--- a/plugins/todo-txt/gtd-todo-txt-parser.c
+++ b/plugins/todo-txt/gtd-todo-txt-parser.c
@@ -314,9 +314,9 @@ gtd_todo_txt_parser_parse_task (GtdProvider *provider,
* Returns: (transfer full)(nullable): A @GPtrArray
*/
GPtrArray*
-gtd_todo_txt_parser_parse_task_lists (GtdProvider *provider,
- const gchar *line,
- GError **error)
+gtd_todo_txt_parser_parse_task_lists (GtdProvider *provider,
+ const gchar *line,
+ GError **error)
{
g_auto (GStrv) lists = NULL;
g_autoptr (GPtrArray) l = NULL;
@@ -331,8 +331,6 @@ gtd_todo_txt_parser_parse_task_lists (GtdProvider *provider,
{
g_autoptr (GtdTaskList) new_list = NULL;
g_autoptr (GString) list_name = NULL;
- g_autofree gchar *color = NULL;
- g_auto (GStrv) tokens = NULL;
const gchar *token = lists[i];
if (!token)
@@ -370,9 +368,9 @@ gtd_todo_txt_parser_parse_task_lists (GtdProvider *provider,
* %FALSE otherwise.
*/
gboolean
-gtd_todo_txt_parser_parse_task_list_color (GHashTable *name_to_tasklist,
- const gchar *line,
- GError **error)
+gtd_todo_txt_parser_parse_task_list_color (GHashTable *name_to_tasklist,
+ const gchar *line,
+ GError **error)
{
g_auto (GStrv) lists = NULL;
guint tokens_len_after_split = 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]