浏览代码

- Removed a number of unused variables, reduces noise at compilation.

git-svn-id: trunk@22880 -
sergei 12 年之前
父节点
当前提交
12ad6704f6
共有 7 个文件被更改,包括 0 次插入13 次删除
  1. 0 2
      compiler/cclasses.pas
  2. 0 2
      compiler/constexp.pas
  3. 0 1
      compiler/i386/hlcgcpu.pas
  4. 0 1
      compiler/ncgmem.pas
  5. 0 3
      compiler/ninl.pas
  6. 0 1
      compiler/nmat.pas
  7. 0 3
      compiler/symdef.pas

+ 0 - 2
compiler/cclasses.pas

@@ -1506,8 +1506,6 @@ begin
 end;
 end;
 
 
 function TFPHashList.InternalFind(AHash:LongWord;const AName:TSymStr;out PrevIndex:Integer):Integer;
 function TFPHashList.InternalFind(AHash:LongWord;const AName:TSymStr;out PrevIndex:Integer):Integer;
-var
-  HashIndex : Integer;
 begin
 begin
   prefetch(AName[1]);
   prefetch(AName[1]);
   Result:=FHashTable^[AHash and FCapacityMask];
   Result:=FHashTable^[AHash and FCapacityMask];

+ 0 - 2
compiler/constexp.pas

@@ -42,8 +42,6 @@ type  Tconstexprint=record
             (svalue:int64);
             (svalue:int64);
       end;
       end;
 
 
-      Tconststring = type pchar;
-
       errorproc=procedure (i:longint);
       errorproc=procedure (i:longint);
 
 
 {"Uses verbose" gives a dependency on cpuinfo through globals. This leads
 {"Uses verbose" gives a dependency on cpuinfo through globals. This leads

+ 0 - 1
compiler/i386/hlcgcpu.pas

@@ -58,7 +58,6 @@ implementation
   procedure thlcgcpu.gen_loadfpu_loc_cgpara(list: TAsmList; size: tdef; const l: tlocation; const cgpara: tcgpara; locintsize: longint);
   procedure thlcgcpu.gen_loadfpu_loc_cgpara(list: TAsmList; size: tdef; const l: tlocation; const cgpara: tcgpara; locintsize: longint);
     var
     var
       locsize : tcgsize;
       locsize : tcgsize;
-      locdef : tdef;
       tmploc : tlocation;
       tmploc : tlocation;
       href   : treference;
       href   : treference;
       stacksize   : longint;
       stacksize   : longint;

+ 0 - 1
compiler/ncgmem.pas

@@ -282,7 +282,6 @@ implementation
       var
       var
         sym: tasmsymbol;
         sym: tasmsymbol;
         paraloc1 : tcgpara;
         paraloc1 : tcgpara;
-        hreg  : tregister;
         tmpref: treference;
         tmpref: treference;
         sref: tsubsetreference;
         sref: tsubsetreference;
       begin
       begin

+ 0 - 3
compiler/ninl.pas

@@ -1584,9 +1584,6 @@ implementation
 
 
     function tinlinenode.handle_copy: tnode;
     function tinlinenode.handle_copy: tnode;
       var
       var
-        lowppn,
-        highppn,
-        npara,
         paras   : tnode;
         paras   : tnode;
         ppn     : tcallparanode;
         ppn     : tcallparanode;
         paradef : tdef;
         paradef : tdef;

+ 0 - 1
compiler/nmat.pas

@@ -439,7 +439,6 @@ implementation
     function tmoddivnode.firstoptimize: tnode;
     function tmoddivnode.firstoptimize: tnode;
       var
       var
         power,shiftval : longint;
         power,shiftval : longint;
-        newtype: tnodetype;
         statements : tstatementnode;
         statements : tstatementnode;
         temp : ttempcreatenode;
         temp : ttempcreatenode;
       begin
       begin

+ 0 - 3
compiler/symdef.pas

@@ -3905,7 +3905,6 @@ implementation
       var
       var
         j, nestinglevel: longint;
         j, nestinglevel: longint;
         pvs, npvs: tparavarsym;
         pvs, npvs: tparavarsym;
-        csym, ncsym: tconstsym;
       begin
       begin
         nestinglevel:=parast.symtablelevel;
         nestinglevel:=parast.symtablelevel;
         if newtyp=procdef then
         if newtyp=procdef then
@@ -4447,9 +4446,7 @@ implementation
 
 
     function tprocdef.getcopyas(newtyp: tdeftyp; copytyp: tproccopytyp): tstoreddef;
     function tprocdef.getcopyas(newtyp: tdeftyp; copytyp: tproccopytyp): tstoreddef;
       var
       var
-        i : tcallercallee;
         j : longint;
         j : longint;
-        pvs : tparavarsym;
       begin
       begin
         result:=inherited getcopyas(newtyp,copytyp);
         result:=inherited getcopyas(newtyp,copytyp);
         if newtyp=procvardef then
         if newtyp=procvardef then