Ver código fonte

- removed TWasiSearchRec.Mode, because it was unused

Nikolay Nikolov 3 anos atrás
pai
commit
6921b968f1
2 arquivos alterados com 0 adições e 3 exclusões
  1. 0 2
      rtl/wasi/dos.pp
  2. 0 1
      rtl/wasi/wasiutil.pp

+ 0 - 2
rtl/wasi/dos.pp

@@ -385,7 +385,6 @@ begin
   o.DirFD:=i.DirFD;
   o.SearchType:=i.SearchType;
   o.SearchAttr:=i.SearchAttr;
-  o.Mode:=i.Mode;
   o.Attr:=i.Attr;
   UnpackTime(i.Time,DT);
   o.Time:=DTToWasiDate(DT);
@@ -406,7 +405,6 @@ begin
   o.DirFD:=i.DirFD;
   o.SearchType:=i.SearchType;
   o.SearchAttr:=i.SearchAttr;
-  o.Mode:=i.Mode;
   o.Attr:=i.Attr;
   WasiDateToDt(i.Time,DT);
   PackTime(DT,o.Time);

+ 0 - 1
rtl/wasi/wasiutil.pp

@@ -30,7 +30,6 @@ type
     DirFD      : __wasi_fd_t;        {directory fd handle for reading directory}
     SearchType : Byte;               {0=normal, 1=open will close, 2=only 1 file}
     SearchAttr : Byte;               {attribute we are searching for}
-    Mode       : Word;
     Attr       : Byte;               {attribute of found file}
     Time       : __wasi_timestamp_t; {last modify date of found file}
     Size       : __wasi_filesize_t;  {file size of found file}