Browse Source

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

Dmitrii Kuvaiskii 6 years ago
parent
commit
d83330c665
3 changed files with 0 additions and 6 deletions
  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);
     HANDLE_HDR(hdl)->flags |= RFD(0)|WFD(0)|WRITABLE(0);
     hdl->file.fd = ret;
     hdl->file.fd = ret;
     hdl->file.offset = 0;
     hdl->file.offset = 0;
-    hdl->file.append = 0;
-    hdl->file.pass = 0;
     hdl->file.map_start = NULL;
     hdl->file.map_start = NULL;
     char * path = (void *) hdl + HANDLE_SIZE(file);
     char * path = (void *) hdl + HANDLE_SIZE(file);
     memcpy(path, uri, len + 1);
     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);
     HANDLE_HDR(file)->flags |= RFD(0)|WFD(0)|WRITABLE(0);
     file->file.fd = fd;
     file->file.fd = fd;
     file->file.offset = 0;
     file->file.offset = 0;
-    file->file.append = false;
-    file->file.pass = false;
     file->file.map_start = NULL;
     file->file.map_start = NULL;
 
 
     char * path = (void *) file + HANDLE_SIZE(file);
     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 {
         struct {
             PAL_IDX fd;
             PAL_IDX fd;
             PAL_NUM offset;
             PAL_NUM offset;
-            PAL_BOL append;
-            PAL_BOL pass;
             PAL_STR realpath;
             PAL_STR realpath;
             /*
             /*
              * map_start is to request this file should be mapped to this
              * map_start is to request this file should be mapped to this