From: Jiyong Date: Thu, 2 May 2024 22:45:26 +0000 (+0900) Subject: Remove unused code X-Git-Tag: accepted/tizen/unified/20240503.115801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Funified%2F20240503.115801;p=platform%2Fcore%2Fapi%2Fmedia-controller.git Remove unused code Change-Id: I7245d218329b50d757e651c069021b8210a477ee --- diff --git a/svc/include/media_controller_socket.h b/svc/include/media_controller_socket.h index 3a6df89..9f19663 100755 --- a/svc/include/media_controller_socket.h +++ b/svc/include/media_controller_socket.h @@ -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; diff --git a/svc/media_controller_svc.c b/svc/media_controller_svc.c index 10c8292..3588fb7 100644 --- a/svc/media_controller_svc.c +++ b/svc/media_controller_svc.c @@ -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;