summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorjinwoo.shin <jw0227.shin@samsung.com>2015-08-25 13:22:30 +0900
committerjinwoo.shin <jw0227.shin@samsung.com>2015-08-25 13:40:12 +0900
commit73735c5f3c9864128bd2fbcfa1c1540411a783fa (patch)
tree7547b5a5559ba6ac8dd841656d9289b779392b5a /daemon
parent6d1554f569d0394bd0b5171cad5f763e323a241d (diff)
downloadair_infosquare-73735c5f3c9864128bd2fbcfa1c1540411a783fa.tar.gz
air_infosquare-73735c5f3c9864128bd2fbcfa1c1540411a783fa.tar.bz2
air_infosquare-73735c5f3c9864128bd2fbcfa1c1540411a783fa.zip
Change-Id: I09dc3df16ee3d28a0449a87c18eb82d8a1207287 Signed-off-by: jinwoo.shin <jw0227.shin@samsung.com>
Diffstat (limited to 'daemon')
-rw-r--r--daemon/notification_display_service.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/daemon/notification_display_service.c b/daemon/notification_display_service.c
index 09699b3..ebc890b 100644
--- a/daemon/notification_display_service.c
+++ b/daemon/notification_display_service.c
@@ -69,24 +69,6 @@ void _notification_changed_cb(void *data, notification_type_e notif_type)
notification_free_list(noti_list);
}
-static void _clear_notification(void)
-{
- notification_list_h noti_list = NULL;
- notification_h noti;
-
- notification_get_list(NOTIFICATION_TYPE_NOTI, -1, &noti_list);
- if (!noti_list)
- return;
-
- while (noti_list != NULL) {
- noti = notification_list_get_data(noti_list);
- notification_delete(noti);
-
- noti_list = notification_list_remove(noti_list, noti);
- notification_free(noti);
- }
-}
-
time_t _get_last_time(void)
{
time_t last_time = 0;
@@ -96,9 +78,8 @@ time_t _get_last_time(void)
notification_get_list(NOTIFICATION_TYPE_NOTI, -1, &noti_list);
if (noti_list) {
noti = notification_list_get_data(noti_list);
- if (noti) {
+ if (noti)
notification_get_insert_time(noti, &last_time);
- }
}
notification_free_list(noti_list);
@@ -159,9 +140,6 @@ int main(int argc, char **argv)
return 0;
}
- /* NOTE: Odroid specific code to workaround time issue */
- _clear_notification();
-
priv->last_time = _get_last_time();
error_n = NOTIFICATION_ERROR_SERVICE_NOT_READY;