瀏覽代碼

[Pal/Linux] Remove unused pal_handle.file.{pass,append} fields

Dmitrii Kuvaiskii 6 年之前
父節點
當前提交
d83330c665
共有 3 個文件被更改,包括 0 次插入6 次删除
  1. 0 2
      Pal/src/host/Linux/db_files.c
  2. 0 2
      Pal/src/host/Linux/db_main.c
  3. 0 2
      Pal/src/host/Linux/pal_host.h

+ 0 - 2
Pal/src/host/Linux/db_files.c

@@ -59,8 +59,6 @@ static int file_open (PAL_HANDLE * handle, const char * type, const char * uri,
     HANDLE_HDR(hdl)->flags |= RFD(0)|WFD(0)|WRITABLE(0);
     hdl->file.fd = ret;
     hdl->file.offset = 0;
-    hdl->file.append = 0;
-    hdl->file.pass = 0;
     hdl->file.map_start = NULL;
     char * path = (void *) hdl + HANDLE_SIZE(file);
     memcpy(path, uri, len + 1);

+ 0 - 2
Pal/src/host/Linux/db_main.c

@@ -287,8 +287,6 @@ void pal_linux_main (void * args)
     HANDLE_HDR(file)->flags |= RFD(0)|WFD(0)|WRITABLE(0);
     file->file.fd = fd;
     file->file.offset = 0;
-    file->file.append = false;
-    file->file.pass = false;
     file->file.map_start = NULL;
 
     char * path = (void *) file + HANDLE_SIZE(file);

+ 0 - 2
Pal/src/host/Linux/pal_host.h

@@ -86,8 +86,6 @@ typedef struct pal_handle
         struct {
             PAL_IDX fd;
             PAL_NUM offset;
-            PAL_BOL append;
-            PAL_BOL pass;
             PAL_STR realpath;
             /*
              * map_start is to request this file should be mapped to this