diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-11 09:31:57 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-14 10:42:56 +0200 |
commit | 91df125e39c5200b87938ad51d28c1174b17bd1d (patch) | |
tree | e1285079413ce4202e629dce80a8a3adcd1ae3c4 /src/up-history.c | |
parent | 8c83871f10b363c7080afbc4dca8fb7841edf42a (diff) | |
download | upower-91df125e39c5200b87938ad51d28c1174b17bd1d.tar.gz |
daemon: Remove unneeded reset of priv struct members
It's already done by GObject.
Diffstat (limited to 'src/up-history.c')
-rw-r--r-- | src/up-history.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/up-history.c b/src/up-history.c index 169d361..b73f6a0 100644 --- a/src/up-history.c +++ b/src/up-history.c @@ -884,15 +884,10 @@ static void up_history_init (UpHistory *history) { history->priv = UP_HISTORY_GET_PRIVATE (history); - history->priv->id = NULL; - history->priv->rate_last = 0; - history->priv->percentage_last = 0; - history->priv->state = UP_DEVICE_STATE_UNKNOWN; history->priv->data_rate = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); history->priv->data_charge = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); history->priv->data_time_full = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); history->priv->data_time_empty = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); - history->priv->save_id = 0; history->priv->max_data_age = UP_HISTORY_DEFAULT_MAX_DATA_AGE; history->priv->dir = g_build_filename (HISTORY_DIR, NULL); } |