From deb2e03886522f7349f1dac8426c5b6a8e8cc1d2 Mon Sep 17 00:00:00 2001 From: Sunggoo Kim Date: Wed, 6 May 2015 14:00:11 +0900 Subject: [PATCH] Remove temporary code Change-Id: I356ca70107e30edeaa3191017dda6cf5e6696056 --- client/ctsvc_client_ipc.c | 29 ----------------------------- 1 file changed, 29 deletions(-) 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) -- 2.7.4