From c9562d3eadee282b044254d6e7a157d43e4bdef0 Mon Sep 17 00:00:00 2001 From: Dmitrii Kuvaiskii Date: Fri, 20 Sep 2019 15:37:50 -0700 Subject: [PATCH] [Pal/Linux-SGX] Remove unused pal_handle.file.{pass,append} fields --- Pal/src/host/Linux-SGX/db_files.c | 2 -- Pal/src/host/Linux-SGX/db_main.c | 2 -- Pal/src/host/Linux-SGX/pal_host.h | 2 -- 3 files changed, 6 deletions(-) diff --git a/Pal/src/host/Linux-SGX/db_files.c b/Pal/src/host/Linux-SGX/db_files.c index 317ec921..27fa02d2 100644 --- a/Pal/src/host/Linux-SGX/db_files.c +++ b/Pal/src/host/Linux-SGX/db_files.c @@ -58,8 +58,6 @@ static int file_open(PAL_HANDLE* handle, const char* type, const char* uri, int SET_HANDLE_TYPE(hdl, file); HANDLE_HDR(hdl)->flags |= RFD(0) | WFD(0) | WRITABLE(0); hdl->file.fd = fd; - hdl->file.append = 0; - hdl->file.pass = 0; char* path = (void*)hdl + HANDLE_SIZE(file); int ret; if ((ret = get_norm_path(uri, path, &len)) < 0) { diff --git a/Pal/src/host/Linux-SGX/db_main.c b/Pal/src/host/Linux-SGX/db_main.c index 60c2d7d8..1a1a5dce 100644 --- a/Pal/src/host/Linux-SGX/db_main.c +++ b/Pal/src/host/Linux-SGX/db_main.c @@ -102,8 +102,6 @@ static PAL_HANDLE setup_dummy_file_handle (const char * name) SET_HANDLE_TYPE(handle, file); HANDLE_HDR(handle)->flags |= RFD(0); handle->file.fd = PAL_IDX_POISON; - handle->file.append = 0; - handle->file.pass = 0; char * path = (void *) handle + HANDLE_SIZE(file); int ret = get_norm_path(name, path, &len); diff --git a/Pal/src/host/Linux-SGX/pal_host.h b/Pal/src/host/Linux-SGX/pal_host.h index 6a40b5d6..eb9b2244 100644 --- a/Pal/src/host/Linux-SGX/pal_host.h +++ b/Pal/src/host/Linux-SGX/pal_host.h @@ -94,8 +94,6 @@ typedef struct pal_handle struct { PAL_IDX fd; - PAL_BOL append; - PAL_BOL pass; PAL_STR realpath; PAL_NUM total; PAL_PTR stubs;