Remove unused functions 84/279484/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 10 Aug 2022 06:08:30 +0000 (15:08 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 10 Aug 2022 06:23:22 +0000 (15:23 +0900)
Removes:
 - aul_key_init()
 - aul_key_reserve()
 - aul_key_release()

Change-Id: I442f80e96fcaf71f9bd77010f843f70ff5a152bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/aul_cmd.h
src/app_request.cc
src/aul_launch.c
src/key.c [deleted file]
src/key.h [deleted file]
src/launch.cc

index a81d045..40562e0 100644 (file)
@@ -44,10 +44,10 @@ enum app_cmd {
        APP_GET_PKGID_BYPID = 17,
        APP_GET_INFO_OK = 18,
        APP_GET_INFO_ERROR = 19,
-       APP_KEY_EVENT = 20,
+       APP_KEY_EVENT = 20,  /**< Unused */
 
-       APP_KEY_RESERVE = 21,
-       APP_KEY_RELEASE = 22,
+       APP_KEY_RESERVE = 21,  /**< Unused */
+       APP_KEY_RELEASE = 22,  /**< Unused */
        APP_STATUS_UPDATE = 23,
        APP_RUNNING_LIST_UPDATE = 24,
        APP_TERM_REQ_BY_PID = 25,
index afba803..1842a2e 100644 (file)
@@ -37,7 +37,6 @@
 #include "aul_error.h"
 #include "aul_sock.h"
 #include "aul_util.h"
-#include "key.h"
 #include "launch.h"
 
 namespace aul {
index abb022d..78120d0 100644 (file)
@@ -34,7 +34,6 @@
 #include "aul.h"
 #include "aul_sock.h"
 #include "launch.h"
-#include "key.h"
 #include "aul_watch_control_internal.h"
 #include "aul_worker.h"
 #include "aul_watchdog.h"
@@ -227,11 +226,6 @@ static void __dispatch_app_result(aul_request_h req)
        app_result(req->cmd, req->b, pid);
 }
 
-static void __dispatch_app_key_event(aul_request_h req)
-{
-       app_key_event(req->b);
-}
-
 static void __dispatch_app_pause_by_pid(aul_request_h req)
 {
        __invoke_aul_handler(AUL_PAUSE, req->b);
@@ -364,7 +358,6 @@ static dispatcher __dispatcher[] = {
        [APP_TERM_REQ_BY_PID] = __dispatch_app_term_req_by_pid,
        [APP_RESULT] = __dispatch_app_result,
        [APP_CANCEL] = __dispatch_app_result,
-       [APP_KEY_EVENT] = __dispatch_app_key_event,
        [APP_PAUSE_BY_PID] = __dispatch_app_pause_by_pid,
        [APP_COM_MESSAGE] = __dispatch_app_com_message,
        [APP_WAKE] = __dispatch_app_wake,
diff --git a/src/key.c b/src/key.c
deleted file mode 100644 (file)
index 1eb09d3..0000000
--- a/src/key.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#define _GNU_SOURCE
-#include <bundle.h>
-
-#include "aul.h"
-#include "aul_api.h"
-#include "launch.h"
-
-int app_key_event(bundle *kb)
-{
-       return 0;
-}
-
-API int aul_key_init(int (*aul_handler)(bundle *, void *), void *data)
-{
-       return AUL_R_OK;
-}
-
-API int aul_key_reserve()
-{
-       return AUL_R_OK;
-}
-
-API int aul_key_release()
-{
-       return AUL_R_OK;
-}
diff --git a/src/key.h b/src/key.h
deleted file mode 100644 (file)
index 4f634e5..0000000
--- a/src/key.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int app_key_event(bundle *kb);
-
-#ifdef __cplusplus
-}
-#endif
index 74e30fd..50e9b2e 100644 (file)
@@ -38,7 +38,6 @@
 #include "aul_error.h"
 #include "aul_sock.h"
 #include "aul_util.h"
-#include "key.h"
 #include "launch.h"
 
 using namespace aul::internal;