Remove temporary macro related with badge_set_display API 39/107439/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.122220 accepted/tizen/3.0.m2/tv/20170104.122507 accepted/tizen/3.0.m2/wearable/20170104.122853 accepted/tizen/3.0/common/20161229.112728 accepted/tizen/3.0/ivi/20161229.054117 accepted/tizen/3.0/mobile/20161229.054034 accepted/tizen/3.0/tv/20161229.054051 accepted/tizen/3.0/wearable/20161229.054104 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161228.051438
authorseungha.son <seungha.son@samsung.com>
Wed, 28 Dec 2016 05:39:11 +0000 (14:39 +0900)
committerseungha.son <seungha.son@samsung.com>
Wed, 28 Dec 2016 05:50:12 +0000 (14:50 +0900)
 - As soon as the badge setting API support is done, the provided
   macro is deleted.
   This macro is provided to control the badge funcation in the
   setting app before creating the badge in the application.
 - Relative patch : https://review.tizen.org/gerrit/#/c/100025/

Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: Idb4243cc10ecad3a4e569264fd74b996c2f96b3c

src/badge_internal.c

index 1bfb368..b4e541f 100755 (executable)
@@ -796,13 +796,12 @@ int _badge_set_display(const char *pkgname, unsigned int is_display, uid_t uid)
                /* LCOV_EXCL_STOP */
        }
 
-#if 0 /* Temporary */
        ret = _badge_check_data_inserted(pkgname, db, uid);
        if (ret != BADGE_ERROR_ALREADY_EXIST) {
                result = ret;
                goto return_close_db;
        }
-#endif
+
        ret = _badge_check_option_inserted(pkgname, db, uid);
        if (ret == BADGE_ERROR_ALREADY_EXIST) {
                sqlbuf = sqlite3_mprintf("UPDATE %q SET display = %d " \