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

generate_specialization:
* Remove some unused variables
* Fix a comment

git-svn-id: branches/svenbarth/generics@19718 -

svenbarth 13 éve
szülő
commit
d55684937f
1 módosított fájl, 2 hozzáadás és 5 törlés
  1. 2 5
      compiler/pgenutil.pas

+ 2 - 5
compiler/pgenutil.pas

@@ -59,12 +59,11 @@ uses
       var
         st  : TSymtable;
         srsym : tsym;
-        pt2,pttmp : tnode;
+        pt2 : tnode;
         first,
         err : boolean;
         i,
         gencount : longint;
-        sym : tsym;
         genericdef : tstoreddef;
         generictype : ttypesym;
         genericdeflist : TFPObjectList;
@@ -77,7 +76,6 @@ uses
         uspecializename,
         countstr,genname,ugenname,specializename : string;
         vmtbuilder : TVMTBuilder;
-        onlyparsepara : boolean;
         specializest : tsymtable;
         item : tobject;
         old_current_structdef : tabstractrecorddef;
@@ -88,7 +86,6 @@ uses
         { retrieve generic def that we are going to replace }
         genericdef:=tstoreddef(tt);
         tt:=nil;
-        onlyparsepara:=false;
 
         { either symname must be given or genericdef needs to be valid }
         if (symname='') and
@@ -359,7 +356,7 @@ uses
                 srsym:=ttypesym.create(specializename,generrordef);
                 specializest.insert(srsym);
 
-                { specializations are declarations as such it is the wised to
+                { specializations are declarations as such it is the wisest to
                   declare set the blocktype to "type"; otherwise we'll
                   experience unexpected side effects like the addition of
                   classrefdefs if we have a generic that's derived from another