From b627004ef464947ca3458dedf7d41fb10f8ae466 Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Tue, 22 Mar 2016 15:03:50 +0900 Subject: [PATCH] Delete privilege checking routine Change-Id: I86c6a4046fb4e78d193825dafb77b23145b1625e Signed-off-by: Myungki Lee --- src/app_context.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/app_context.c b/src/app_context.c index 695a683..7d6878e 100644 --- a/src/app_context.c +++ b/src/app_context.c @@ -529,19 +529,9 @@ static int app_context_terminated_event_cb(pid_t pid, void *data) int app_context_set_event_cb(app_manager_app_context_event_cb callback, void *user_data) { - int ret; - if (callback == NULL) return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL); - ret = app_manager_check_privilege(PRIVILEGE_PKGMGR_INFO); - if (ret != APP_MANAGER_ERROR_NONE) { - if (ret == APP_MANAGER_ERROR_PERMISSION_DENIED) - return app_manager_error(APP_MANAGER_ERROR_PERMISSION_DENIED, __FUNCTION__, NULL); - else - return app_manager_error(APP_MANAGER_ERROR_IO_ERROR, __FUNCTION__, NULL); - } - app_context_lock_event_cb_context(); if (event_cb_context == NULL) { -- 2.7.4