Removes unnecessary code 84/132584/1
authorSeungha Son <seungha.son@samsung.com>
Wed, 7 Jun 2017 04:39:22 +0000 (13:39 +0900)
committerSeungha Son <seungha.son@samsung.com>
Wed, 7 Jun 2017 04:44:53 +0000 (13:44 +0900)
 notification handle is created by using calloc,
 so some codes that set to zero are unnecessary

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I4ab523a4689b4011787970fb2e4a61443f0ba301

src/notification.c

index 07aa010c386f25857a22e47d1a567111da763005..cfaa91525586e336e95be41eb4cd5aa6a7052d41 100755 (executable)
@@ -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");