From 220069c26350ec51e0033dd1535ee7dd3ca600d3 Mon Sep 17 00:00:00 2001 From: Andrzej Popowski Date: Fri, 6 May 2016 15:59:06 +0200 Subject: [PATCH] [Contact] - fixing bug when getting data of a person Change-Id: I7db8525d713ca6f7029513f4fbdcf62bf0936bb4 Signed-off-by: Andrzej Popowski --- src/contact/contact_manager.cc | 5 ----- src/contact/contact_search_engine.h | 1 - 2 files changed, 6 deletions(-) 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; -- 2.34.1