Browse Source

* removed some unused code and associated variable
from parse_packed_array_def

git-svn-id: trunk@6605 -

Jonas Maebe 18 years ago
parent
commit
06208b5c5d
1 changed files with 0 additions and 6 deletions
  1. 0 6
      compiler/ptconst.pas

+ 0 - 6
compiler/ptconst.pas

@@ -698,7 +698,6 @@ implementation
         procedure parse_packed_array_def(list: tasmlist; def: tarraydef);
         procedure parse_packed_array_def(list: tasmlist; def: tarraydef);
           var
           var
             i : aint;
             i : aint;
-            loadmask: aword;
             curval, nextval: aword;
             curval, nextval: aword;
             curbitoffset: smallint;
             curbitoffset: smallint;
             packedbitsize,
             packedbitsize,
@@ -710,11 +709,6 @@ implementation
             consume(_LKLAMMER);
             consume(_LKLAMMER);
             packedbitsize:=def.elepackedbitsize;
             packedbitsize:=def.elepackedbitsize;
             loadbitsize:=packedbitsloadsize(packedbitsize)*8;
             loadbitsize:=packedbitsloadsize(packedbitsize)*8;
-            { 1 shl 32/64 = 1 on i386/x86_64 }
-            if (loadbitsize*8 <> sizeof(aword)) then
-              loadmask:=aword(1) shl loadbitsize
-            else
-              loadmask:=aword(-1);
             curval:=0;
             curval:=0;
             curbitoffset:=0;
             curbitoffset:=0;
             i:=def.lowrange;
             i:=def.lowrange;