From: SukhyungKang Date: Wed, 20 Mar 2024 07:42:56 +0000 (+0900) Subject: Remove unnecessary code X-Git-Tag: accepted/tizen/unified/20240321.142411~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f8d229bd874a74bbff8fc3181174b89b4987e11;p=platform%2Fcore%2Fapi%2Fnotification.git Remove unnecessary code Change-Id: I76f201e794a898e2baba6b256b71b5ef4b5dfbf6 Signed-off-by: SukhyungKang --- diff --git a/notification/src/notification_internal.c b/notification/src/notification_internal.c index 804f9677..22779df9 100644 --- a/notification/src/notification_internal.c +++ b/notification/src/notification_internal.c @@ -72,7 +72,6 @@ static GHashTable *_noti_cb_hash = NULL; static GList *__noti_event_cb_list = NULL; static GRecMutex __rec_mutex; -static gint __init_mutex = 0; NOTIFICATION_CTOR static void __notification_init(void) { @@ -745,7 +744,6 @@ EXPORT_API int notification_delete_group_by_group_id(const char *app_id, __notification_mutex_unlock(); -out: if (caller_app_id) free(caller_app_id); @@ -772,7 +770,6 @@ int notification_delete_group_by_priv_id_for_uid(const char *app_id, __notification_mutex_unlock(); -out: if (caller_app_id) free(caller_app_id); @@ -930,7 +927,6 @@ int notification_delete_all_by_type_for_uid(const char *app_id, __notification_mutex_unlock(); -out: if (caller_app_id) free(caller_app_id); @@ -967,7 +963,6 @@ int notification_delete_by_priv_id_for_uid(const char *app_id, __notification_mutex_unlock(); -out: if (caller_app_id) free(caller_app_id); @@ -1617,7 +1612,6 @@ EXPORT_API int notification_delete_all_for_uid(notification_type_e type, uid_t u __notification_mutex_unlock(); -out: if (caller_app_id) free(caller_app_id);