summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Min <jiyong.min@samsung.com>2017-09-22 08:10:24 +0900
committerhj kim <backto.kim@samsung.com>2017-09-21 23:18:03 +0000
commite419decd5ac7751197906a9eee2cfc9596f48a9a (patch)
treeee99df23484eb59a92b72a4f996404eceb20dfed
parentda9ed176b29970ec7d745183392b2e409fb52c3c (diff)
downloadmedia-controller-e419decd5ac7751197906a9eee2cfc9596f48a9a.tar.gz
media-controller-e419decd5ac7751197906a9eee2cfc9596f48a9a.tar.bz2
media-controller-e419decd5ac7751197906a9eee2cfc9596f48a9a.zip
Remove unused code
Change-Id: I0513f808a19ef3b6a68595709d56a4f1657b7645 Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
-rwxr-xr-xsvc/media_controller_svc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/svc/media_controller_svc.c b/svc/media_controller_svc.c
index 966ab74..6849ea8 100755
--- a/svc/media_controller_svc.c
+++ b/svc/media_controller_svc.c
@@ -59,8 +59,6 @@ static void __mc_destroy_queue(gpointer data)
{
mc_service_request *req = (mc_service_request *)data;
if (req != NULL) {
-// MC_SAFE_FREE(req->creds.uid);
-// MC_SAFE_FREE(req->creds.smack);
MC_SAFE_FREE(req->req_msg);
MC_SAFE_FREE(req);
}
@@ -411,11 +409,6 @@ gboolean _mc_service_process(gpointer data)
}
if (request_msg->msg_type == MC_MSG_DB_UPDATE) {
-/* if (req->permission != 2) {
- mc_error("permission is denied![%d]", res);
- send_msg = MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED;
- goto ERROR;
- }*/
char *sql_query = NULL;
sql_query = strndup(request_msg->msg, request_msg->msg_size);
if (sql_query != NULL) {
@@ -477,8 +470,6 @@ ERROR:
if (close(req->client_sock) < 0)
mc_stderror("close failed");
-// MC_SAFE_FREE(req->creds.uid);
-// MC_SAFE_FREE(req->creds.smack);
MC_SAFE_FREE(req->req_msg);
MC_SAFE_FREE(req);