From: Andrzej Popowski Date: Fri, 6 May 2016 13:59:06 +0000 (+0200) Subject: [Contact] - fixing bug when getting data of a person X-Git-Tag: submit/tizen/20160509.020631^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=220069c26350ec51e0033dd1535ee7dd3ca600d3;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Contact] - fixing bug when getting data of a person Change-Id: I7db8525d713ca6f7029513f4fbdcf62bf0936bb4 Signed-off-by: Andrzej Popowski --- diff --git a/src/contact/contact_manager.cc b/src/contact/contact_manager.cc index de355d0d..5ec5d995 100755 --- a/src/contact/contact_manager.cc +++ b/src/contact/contact_manager.cc @@ -188,14 +188,9 @@ PlatformResult ContactManagerGetInternal(int person_id, JsonObject* out) { return status; } - //get information from view _contacts_person_usage - status = ContactSearchEngine::GetPersonUsage(person_id, out); if (CONTACTS_ERROR_NONE != contacts_record_destroy(contacts_record, true)) { LoggerE("failed to destroy contacts_record_h"); } - if (!status) { - return status; - } return PlatformResult(ErrorCode::NO_ERROR); } diff --git a/src/contact/contact_search_engine.h b/src/contact/contact_search_engine.h index 3aec34f2..6dcfbc8b 100644 --- a/src/contact/contact_search_engine.h +++ b/src/contact/contact_search_engine.h @@ -41,7 +41,6 @@ class ContactSearchEngine { common::PlatformResult SetSortMode(const picojson::value& sort_mode); common::PlatformResult Find(picojson::array* out); - static common::PlatformResult GetPersonUsage(int person_id, JsonObject* out_ptr); private: typedef std::vector LongVector;