Remove unnecessary codes (get_handle, xid) 44/279244/1
authorsooyeon <sooyeon.kim@samsung.com>
Thu, 4 Aug 2022 02:25:29 +0000 (11:25 +0900)
committersooyeon <sooyeon.kim@samsung.com>
Thu, 4 Aug 2022 08:26:14 +0000 (17:26 +0900)
Change-Id: Ided2c548d480e7933aa0bb6ecf4312b8c84f6d8d
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
client/vc_client.c
client/vc_client.h

index 4aacf8a..eb2c11c 100644 (file)
@@ -21,7 +21,6 @@ typedef struct {
        /* base info */
        int     pid;
        unsigned int uid;               /*<< unique id = pid + handle */
-       int     xid;            /*<< main X window id */
 
        vc_result_cb                    result_cb;
        void*                           result_user_data;
@@ -92,7 +91,6 @@ int vc_client_create(void)
        /* initialize client data */
        g_client->pid = getpid();
        g_client->uid = getpid();
-       g_client->xid = -1;
 
        g_client->result_cb = NULL;
        g_client->result_user_data = NULL;
@@ -165,32 +163,6 @@ bool vc_client_is_valid(void)
        return true;
 }
 
-//LCOV_EXCL_START
-// int vc_client_get_handle(int pid, vc_h* vc)
-// {
-//     vc_client_s *data = NULL;
-
-//     int count = g_slist_length(g_client_list);
-//     int i;
-
-//     SLOG(LOG_DEBUG, TAG_VCC, "[DEBUG] The number of VC clients(%d)", count);
-
-//     for (i = 0; i < count; i++) {
-//             data = g_slist_nth_data(g_client_list, i);
-
-//             if (NULL != data) {
-//                     SLOG(LOG_DEBUG, TAG_VCC, "[DEBUG] pid(%d), handle(%d)", pid, data->vc->handle);
-//                     if (pid == data->vc->handle) {
-//                             *vc = data->vc;
-//                             return VC_ERROR_NONE;
-//                     }
-//             }
-//     }
-
-//     return VC_ERROR_INVALID_PARAMETER;
-// }
-//LCOV_EXCL_STOP
-
 /* set/get callback function */
 int vc_client_set_result_cb(vc_result_cb callback, void* user_data)
 {
index 6f89ea7..f8946a0 100644 (file)
@@ -38,8 +38,6 @@ int vc_client_destroy(void);
 
 bool vc_client_is_valid(void);
 
-// int vc_client_get_handle(int pid, vc_h* vc);
-
 /*
 * set/get callback function
 */