summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunho Kang <hhstark.kang@samsung.com>2016-03-02 13:43:12 +0900
committerHyunho Kang <hhstark.kang@samsung.com>2016-03-02 13:43:38 +0900
commit83e5203f0e8758f6a7c3fdbfac46f818ac197b30 (patch)
treef767e7cf967ae321a13f1ea29bbac0c592398908
parent9d69417ba43851c4d3cbd7aefc47e768b0d088de (diff)
downloadbadge-83e5203f0e8758f6a7c3fdbfac46f818ac197b30.tar.gz
badge-83e5203f0e8758f6a7c3fdbfac46f818ac197b30.tar.bz2
badge-83e5203f0e8758f6a7c3fdbfac46f818ac197b30.zip
remove unnecessary code for privilege check
Change-Id: I7a622dfd9ce14f422f39b313c26727a454d85614 Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
-rwxr-xr-xsrc/badge.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/badge.c b/src/badge.c
index eb47465..1005e3f 100755
--- a/src/badge.c
+++ b/src/badge.c
@@ -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");
@@ -166,19 +153,6 @@ int badge_set_count(const char *app_id, unsigned int count)
DBG("app_id %s, count %d", app_id, count);
- 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");
@@ -212,19 +186,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");