Remove unused code 58/236858/1
authorsinikang <sinikang@samsung.com>
Tue, 23 Jun 2020 01:43:49 +0000 (10:43 +0900)
committersinikang <sinikang@samsung.com>
Tue, 23 Jun 2020 01:43:49 +0000 (10:43 +0900)
Change-Id: I86aeb6a9686bf0e149c64f052e230acf06fb0c7a
Signed-off-by: sinikang <sinikang@samsung.com>
module/src/callmgr-contact.c
packaging/call-manager.spec

index a876957f66069c09aafb0cbc230ae9ad319f7800..6eb48ad3aa2304ce7e4e201a45f00cf5bac6e4e0 100644 (file)
@@ -66,7 +66,6 @@ typedef enum {
 
 static void __callmgr_ct_update_dialer_badge(int missed_cnt);
 static int __callmgr_ct_get_missed_call_count(void);
-static void __callmgr_ct_delete_notification(void);
 static void __callmgr_ct_add_notification(int missed_cnt);
 static void __callmgr_ct_add_rec_reject_notification(char *number, int person_id, cm_ct_plog_presentation presentation);
 
@@ -627,31 +626,6 @@ static int __callmgr_ct_get_missed_call_count(void)
        return missed_cnt;
 }
 
-static void __callmgr_ct_delete_notification(void)
-{
-       /* Can not load notification with tag
-          Because insert pacakge and load package are different.
-          It is Notification policy */
-#if 0
-       notification_h missed_noti = NULL;
-
-       missed_noti = notification_load_by_tag(CALL_MISSED_TAG);
-       if (missed_noti) {
-               notification_error_e noti_err = NOTIFICATION_ERROR_NONE;
-               dbg("missed noti");
-               noti_err = notification_delete(missed_noti);
-               if (noti_err != NOTIFICATION_ERROR_NONE) {
-                       err("Fail to notification_delete");
-               }
-
-               noti_err = notification_free(missed_noti);
-               if (noti_err != NOTIFICATION_ERROR_NONE) {
-                       err("Fail to notification_free");
-               }
-       }
-#endif
-}
-
 static int __callmgr_ct_get_caller_info(int person_id, char **name, char **caller_id)
 {
        contacts_error_e err = CONTACTS_ERROR_NONE;
@@ -722,8 +696,6 @@ static void __callmgr_ct_add_notification(int missed_cnt)
                 _contacts_phone_log.extra_data2,
        };
 
-       __callmgr_ct_delete_notification();
-
        noti = notification_create(NOTIFICATION_TYPE_NOTI);
        if (noti == NULL) {
                err("Fail to notification_create");
@@ -1098,8 +1070,6 @@ int _callmgr_ct_set_missed_call_notification(void)
        if (missed_cnt > 0) {
                __callmgr_ct_update_dialer_badge(missed_cnt);
                __callmgr_ct_add_notification(missed_cnt);
-       } else {
-               __callmgr_ct_delete_notification();
        }
 
        return 0;
index 99b36f38d9f7a002857f1a061d3a2bce735580e9..7555acdcdd808d05eb4a954c9be3d565c6aacf58 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 2
-%define patchlevel 63
+%define patchlevel 64
 %define ext_feature 0
 
 Name:           call-manager