Revert "[libc-trusty] Add libc wrapper for register_app and unregister_app syscall"

This reverts commit 4517cbf2c6428c7f65ba3a6991bf3dd61f1a5361.
Bug: 130560272

Change-Id: I66cdc8bff380267ac71391a5b85d876e227eba8a
diff --git a/lib/libc-trusty/include/trusty_app_mgmt.h b/lib/libc-trusty/include/trusty_app_mgmt.h
deleted file mode 100644
index 00432df..0000000
--- a/lib/libc-trusty/include/trusty_app_mgmt.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (C) 2019 The Android Open Source Project
- *
- * 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
-
-#include <stdint.h>
-#include <uapi/trusty_uuid.h>
-
-/* Don't use convenience macros here, it will polute the namespace. */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * register_app(): register an application with the application manager
- * @img_uaddr: application to be registered.
- * @img_size: size of the application to be registered.
- *
- * Return: negative error code on error, 0 otherwise
- */
-int register_app(void* img_uaddr, uint32_t img_size);
-
-/**
- * unregister_app(): unregister an application from the application manager
- * @app_uuid: pointer to the uuid of the application to be unregistered
- *
- * Only applications that were previously registered with register_app and are
- * not currently running are elegible to be unregistered.
- *
- * Return: negative error code on error, 0 otherwise
- *
- * XXX:UPDATE DOC
- */
-int unregister_app(uuid_t* app_uuid);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/lib/libc-trusty/rules.mk b/lib/libc-trusty/rules.mk
index 35c1f25..fab8c79 100644
--- a/lib/libc-trusty/rules.mk
+++ b/lib/libc-trusty/rules.mk
@@ -105,7 +105,6 @@
 	$(LOCAL_DIR)/memref.c \
 	$(LOCAL_DIR)/mman.c \
 	$(LOCAL_DIR)/time.c \
-	$(LOCAL_DIR)/trusty_app_mgmt.c \
 	$(LOCAL_DIR)/trusty_err.c \
 	$(LOCAL_DIR)/trusty_uio.c \
 
diff --git a/lib/libc-trusty/trusty_app_mgmt.c b/lib/libc-trusty/trusty_app_mgmt.c
deleted file mode 100644
index e6dbb5f..0000000
--- a/lib/libc-trusty/trusty_app_mgmt.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (C) 2019 The Android Open Source Project
- *
- * 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.
- */
-
-#include <trusty_app_mgmt.h>
-#include <trusty_syscalls.h>
-
-int register_app(void* img_uaddr, uint32_t img_size) {
-    return (int)_trusty_register_app(img_uaddr, img_size);
-}
-
-int unregister_app(uuid_t* app_uuid) {
-    return (int)_trusty_unregister_app(app_uuid);
-}