remove unnecessary code for privilege check 19/58319/1 submit/tizen/20160129.090652
authorjusung son <jusung07.son@samsung.com>
Fri, 29 Jan 2016 08:22:39 +0000 (17:22 +0900)
committerjusung son <jusung07.son@samsung.com>
Fri, 29 Jan 2016 08:22:39 +0000 (17:22 +0900)
Change-Id: If069c4b341c848b7d2d35699c47a63f6ae5450c7
Signed-off-by: jusung son <jusung07.son@samsung.com>
src/badge.c

index 3ee7ce5..f333dde 100755 (executable)
@@ -114,19 +114,6 @@ int badge_remove(const char *app_id)
        if (app_id == NULL)
                return BADGE_ERROR_INVALID_PARAMETER;
 
-       result = _badge_is_existing(app_id, &existing);
-
-       if (result != BADGE_ERROR_NONE) {
-               ERR("_badge_is_existing failed [%x]", result);
-               goto out;
-       }
-
-       if (existing == false) {
-               ERR("app_id is not exist [%s]", app_id);
-               result = BADGE_ERROR_NOT_EXIST;
-               goto out;
-       }
-
        caller = _badge_get_pkgname_by_pid();
        if (!caller) {
                ERR("fail to get caller pkgname");
@@ -171,19 +158,6 @@ int badge_set_count(const char *app_id, unsigned int count)
        if (app_id == NULL)
                return BADGE_ERROR_INVALID_PARAMETER;
 
-       result = _badge_is_existing(app_id, &existing);
-
-       if (result != BADGE_ERROR_NONE) {
-               ERR("_badge_is_existing failed [%x]", result);
-               goto out;
-       }
-
-       if (existing == false) {
-               ERR("app_id is not exist [%s]", app_id);
-               result = BADGE_ERROR_NOT_EXIST;
-               goto out;
-       }
-
        caller = _badge_get_pkgname_by_pid();
        if (!caller) {
                ERR("fail to get caller pkgname");
@@ -214,19 +188,6 @@ int badge_set_display(const char *app_id, unsigned int is_display)
        if (app_id == NULL)
                return BADGE_ERROR_INVALID_PARAMETER;
 
-       result = _badge_is_existing(app_id, &existing);
-
-       if (result != BADGE_ERROR_NONE) {
-               ERR("_badge_is_existing failed [%x]", result);
-               goto out;
-       }
-
-       if (existing == false) {
-               ERR("app_id is not exist [%s]", app_id);
-               result = BADGE_ERROR_NOT_EXIST;
-               goto out;
-       }
-
        caller = _badge_get_pkgname_by_pid();
        if (!caller) {
                ERR("fail to get caller pkgname");