Remove unused code 12/310612/2 accepted/tizen/unified/20240503.115801 accepted/tizen/unified/toolchain/20240508.012328 accepted/tizen/unified/x/20240507.050955
authorJiyong <jiyong.min@samsung.com>
Thu, 2 May 2024 22:45:26 +0000 (07:45 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Fri, 3 May 2024 00:59:43 +0000 (00:59 +0000)
Change-Id: I7245d218329b50d757e651c069021b8210a477ee

svc/include/media_controller_socket.h
svc/media_controller_svc.c

index 3a6df89..9f19663 100755 (executable)
@@ -36,7 +36,6 @@ typedef enum {
        MC_MSG_CLIENT_GET,
        MC_MSG_SERVER_CONNECTION,
        MC_MSG_SERVER_DISCONNECTION,
-       MC_MSG_SERVICE_LAUNCH,
        MC_MSG_MAX,
 } mc_msg_type_e;
 
@@ -50,7 +49,6 @@ typedef struct {
        mc_priv_type_e priv_type;
        int pid;
        uid_t uid;
-       int result;
        size_t msg_size;
        char msg[MAX_MSG_SIZE];
 } mc_comm_msg_s;
index 10c8292..3588fb7 100644 (file)
@@ -630,12 +630,6 @@ static gboolean __mc_read_service_request_tcp_socket(GIOChannel *src, GIOConditi
                goto ERROR;
        }
 
-       if (req->req_msg->msg_type == MC_MSG_SERVICE_LAUNCH) {
-               mc_info("Media Controller Daemon is running");
-               msg = MEDIA_CONTROLLER_ERROR_NONE;
-               goto ERROR;
-       }
-
        if (g_queue_get_length(request_queue) >= MAX_MC_REQUEST) {
                mc_error("request_queue is limited until %d", MAX_MC_REQUEST);
                msg = MEDIA_CONTROLLER_ERROR_INVALID_OPERATION;