Browse Source

[Pal/Linux-SGX] Drop the unused pal_init_enclave function

Simon Gaiser 6 years ago
parent
commit
c33c49aef4
1 changed files with 0 additions and 17 deletions
  1. 0 17
      Pal/src/host/Linux-SGX/sgx_main.c

+ 0 - 17
Pal/src/host/Linux-SGX/sgx_main.c

@@ -930,20 +930,3 @@ finalize:
     }
     return retval;
 }
-
-int pal_init_enclave (const char * manifest_uri,
-                      const char * exec_uri,
-                      const char ** arguments, const char ** environments)
-{
-    if (!manifest_uri)
-        return -PAL_ERROR_INVAL;
-
-    struct pal_enclave * enclave = malloc(sizeof(struct pal_enclave));
-    if (!enclave)
-        return -PAL_ERROR_NOMEM;
-
-    memset(enclave, 0, sizeof(struct pal_enclave));
-
-    return load_enclave(enclave, manifest_uri, exec_uri,
-                        arguments, environments, 0);
-}