From: Sunggoo Kim Date: Wed, 6 May 2015 05:00:11 +0000 (+0900) Subject: Remove temporary code X-Git-Tag: accepted/tizen/mobile/20150908.232306~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=deb2e03886522f7349f1dac8426c5b6a8e8cc1d2;p=platform%2Fcore%2Fpim%2Fcontacts-service.git Remove temporary code Change-Id: I356ca70107e30edeaa3191017dda6cf5e6696056 --- diff --git a/client/ctsvc_client_ipc.c b/client/ctsvc_client_ipc.c index aa8530a..910d17f 100644 --- a/client/ctsvc_client_ipc.c +++ b/client/ctsvc_client_ipc.c @@ -106,10 +106,6 @@ bool ctsvc_ipc_is_busy() static int _ctsvc_ipc_create(pims_ipc_h *p_ipc) { - int ret; - pims_ipc_data_h indata = NULL; - pims_ipc_data_h outdata = NULL; - char sock_file[CTSVC_PATH_MAX_LEN] = {0}; snprintf(sock_file, sizeof(sock_file), CTSVC_SOCK_PATH"/.%s", getuid(), CTSVC_IPC_SERVICE); pims_ipc_h ipc = pims_ipc_create(sock_file); @@ -126,31 +122,6 @@ static int _ctsvc_ipc_create(pims_ipc_h *p_ipc) *p_ipc = ipc; return CONTACTS_ERROR_NONE; - - /* ipc call */ - if (pims_ipc_call(ipc, CTSVC_IPC_MODULE, CTSVC_IPC_SERVER_CONNECT, indata, &outdata) != 0) { - CTS_ERR("pims_ipc_call failed"); - pims_ipc_data_destroy(indata); - ret = CONTACTS_ERROR_IPC; - goto DATA_FREE; - } - - if (outdata) { - unsigned int size = 0; - ret = *(int*) pims_ipc_data_get(outdata,&size); - - pims_ipc_data_destroy(outdata); - - if (ret != CONTACTS_ERROR_NONE) { - CTS_ERR("ctsvc_ipc_server_connect return(%d)", ret); - goto DATA_FREE; - } - } - *p_ipc = ipc; - return CONTACTS_ERROR_NONE; -DATA_FREE: - pims_ipc_destroy(ipc); - return ret; } static void _ctsvc_ipc_data_free(gpointer p)