Forráskód Böngészése

compiler: cleanup - remove unused variables

git-svn-id: trunk@14493 -
paul 15 éve
szülő
commit
b084d70ae4

+ 0 - 1
compiler/htypechk.pas

@@ -2004,7 +2004,6 @@ implementation
         def_to   : tdef;
         def_to   : tdef;
         currpt,
         currpt,
         pt       : tcallparanode;
         pt       : tcallparanode;
-        tmpeq,
         eq       : tequaltype;
         eq       : tequaltype;
         convtype : tconverttype;
         convtype : tconverttype;
         pdtemp,
         pdtemp,

+ 1 - 2
compiler/ncgcon.pas

@@ -262,10 +262,9 @@ implementation
 
 
     procedure tcgstringconstnode.pass_generate_code;
     procedure tcgstringconstnode.pass_generate_code;
       var
       var
-         l1,
          lastlabel   : tasmlabel;
          lastlabel   : tasmlabel;
          pc       : pchar;
          pc       : pchar;
-         l,i : longint;
+         l: longint;
          href: treference;
          href: treference;
          pooltype: TConstPoolType;
          pooltype: TConstPoolType;
          pool: THashSet;
          pool: THashSet;

+ 0 - 3
compiler/ncgobjc.pas

@@ -54,12 +54,9 @@ uses
 
 
 procedure tcgobjcselectornode.pass_generate_code;
 procedure tcgobjcselectornode.pass_generate_code;
   var
   var
-    reflab,
-    strlab : tasmlabel;
     pool   : THashSet;
     pool   : THashSet;
     entry  : PHashSetItem;
     entry  : PHashSetItem;
     name   : pshortstring;
     name   : pshortstring;
-    pc     : pchar;
   begin
   begin
     if current_asmdata.ConstPools[sp_varnamerefs]=nil then
     if current_asmdata.ConstPools[sp_varnamerefs]=nil then
       current_asmdata.ConstPools[sp_varnamerefs]:=THashSet.Create(64, True, False);
       current_asmdata.ConstPools[sp_varnamerefs]:=THashSet.Create(64, True, False);

+ 3 - 1
compiler/nutils.pas

@@ -631,8 +631,10 @@ implementation
     { accesses                                                       }
     { accesses                                                       }
     function node_complexity(p: tnode): cardinal;
     function node_complexity(p: tnode): cardinal;
       var
       var
-        correction,
+        correction: byte;
+{$ifdef ARM}
         dummy : byte;
         dummy : byte;
+{$endif ARM}
       begin
       begin
         result := 0;
         result := 0;
         while assigned(p) do
         while assigned(p) do

+ 0 - 1
compiler/optbase.pas

@@ -82,7 +82,6 @@ unit optbase;
 
 
     procedure DFASetInclude(var s : tdfaset;e : integer);
     procedure DFASetInclude(var s : tdfaset;e : integer);
       var
       var
-        i,
         e8 : Integer;
         e8 : Integer;
       begin
       begin
         e8:=e div 8;
         e8:=e div 8;

+ 0 - 1
compiler/wpoinfo.pas

@@ -208,7 +208,6 @@ implementation
   procedure tunitwpoinfo.deref;
   procedure tunitwpoinfo.deref;
     var
     var
       i: longint;
       i: longint;
-      len: longint;
 
 
     begin
     begin
       if (init_settings.genwpoptimizerswitches=[]) then
       if (init_settings.genwpoptimizerswitches=[]) then