remove deprecated account api 31/43431/2 accepted/tizen/mobile/20150709.111059 accepted/tizen/tv/20150709.111351 accepted/tizen/wearable/20150709.111226 submit/tizen/20150709.081325
authorGukhwan Cho <gh78.cho@samsung.com>
Wed, 8 Jul 2015 02:48:41 +0000 (11:48 +0900)
committerGukhwan Cho <gh78.cho@samsung.com>
Thu, 9 Jul 2015 06:28:51 +0000 (15:28 +0900)
Change-Id: I2c294a8f188fe024a6d9ee5c6123144da68f503e
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
native/ctsvc_db_plugin_addressbook.c
packaging/contacts-service.spec

index d3a8077..39bfada 100644 (file)
@@ -157,18 +157,11 @@ static int __ctsvc_db_addressbook_insert_record( contacts_record_h record, int *
                }
        }
 
-       ret = account_connect();
-       if (ACCOUNT_ERROR_NONE != ret) {
-               CTS_ERR("account_connect Failed(%d)", ret);
-               ctsvc_end_trans(false);
-               return CONTACTS_ERROR_SYSTEM;
-       }
        // check account_id validation
        ret = account_create(&account);
        if (ACCOUNT_ERROR_NONE != ret) {
                CTS_ERR("account_create() Failed(%d)", ret);
                ctsvc_end_trans(false);
-               account_disconnect();
                return CONTACTS_ERROR_SYSTEM;
        }
        ret = account_query_account_by_account_id(addressbook->account_id, &account);
@@ -177,15 +170,11 @@ static int __ctsvc_db_addressbook_insert_record( contacts_record_h record, int *
                ret = account_destroy(account);
                WARN_IF(ret != ACCOUNT_ERROR_NONE, "account_destroy Fail(%d)", ret);
                ctsvc_end_trans(false);
-               account_disconnect();
                return CONTACTS_ERROR_INVALID_PARAMETER;
        }
        ret = account_destroy(account);
        WARN_IF(ret != ACCOUNT_ERROR_NONE, "account_destroy Fail(%d)", ret);
 
-       ret = account_disconnect();
-       WARN_IF(ret != ACCOUNT_ERROR_NONE, "account_disconnect Fail(%d)", ret);
-
        snprintf(query, sizeof(query),
                        "INSERT INTO %s(addressbook_name, account_id, mode, smack_label) "
                        "VALUES(?, %d, %d, ?)",
index e71e267..30f6d39 100644 (file)
@@ -1,6 +1,6 @@
 Name:       contacts-service
 Summary:    Contacts Service
-Version:    0.12.31
+Version:    0.12.32
 Release:    1
 Group:      Social & Content/Pim
 License:    Apache-2.0