From 956798c9d918d89784f777d77140c0c9e392a357 Mon Sep 17 00:00:00 2001 From: Seungha Son Date: Wed, 7 Jun 2017 13:39:22 +0900 Subject: [PATCH] Removes unnecessary code notification handle is created by using calloc, so some codes that set to zero are unnecessary Signed-off-by: Seungha Son Change-Id: I4ab523a4689b4011787970fb2e4a61443f0ba301 --- src/notification.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/notification.c b/src/notification.c index 07aa010..cfaa915 100755 --- a/src/notification.c +++ b/src/notification.c @@ -1447,13 +1447,6 @@ static notification_h _notification_create(notification_type_e type) NOTIFICATION_DISPLAY_APP_TICKER | NOTIFICATION_DISPLAY_APP_INDICATOR; noti->auto_remove = true; - noti->ongoing_flag = false; - noti->default_button_index = 0; - noti->ongoing_value_type = NOTIFICATION_ONGOING_VALUE_TYPE_PERCENT; - noti->hide_timeout = 0; - noti->delete_timeout = 0; - noti->event_flag = false; - noti->is_translation = false; noti->caller_pkgname = notification_get_pkgname_by_pid(); if (noti->caller_pkgname == NULL) { NOTIFICATION_ERR("get_pkgname_by_pid is failed"); -- 2.7.4