[devhelp] Book: remove useless instance variable initializations in init()



commit fcb2b6b3ab2175760c2d6abfb24511837a0cc928
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Apr 29 13:16:03 2017 +0200

    Book: remove useless instance variable initializations in init()
    
    GObject already fills the struct with 0's.

 src/dh-book.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/dh-book.c b/src/dh-book.c
index a8e0036..84193ea 100644
--- a/src/dh-book.c
+++ b/src/dh-book.c
@@ -207,16 +207,8 @@ dh_book_init (DhBook *book)
 {
         DhBookPrivate *priv = dh_book_get_instance_private (book);
 
-        priv->name = NULL;
-        priv->path = NULL;
-        priv->title = NULL;
         priv->enabled = TRUE;
-        priv->tree = NULL;
-        priv->keywords = NULL;
-        priv->completions = NULL;
-        priv->monitor = NULL;
         priv->monitor_event = BOOK_MONITOR_EVENT_NONE;
-        priv->monitor_event_timeout_id = 0;
 }
 
 /**


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