mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 04:22:07 +01:00 
			
		
		
		
	- removed some local variables and associated code not used
anymore after r4024 git-svn-id: trunk@4187 -
This commit is contained in:
		
							parent
							
								
									743b05e911
								
							
						
					
					
						commit
						c6b3550291
					
				@ -1779,25 +1779,9 @@ implementation
 | 
			
		||||
 | 
			
		||||
    function searchsym_in_class_by_msgint(classh:tobjectdef;i:longint;out srsym:tsym;out srsymtable:tsymtable):boolean;
 | 
			
		||||
      var
 | 
			
		||||
        topclassh  : tobjectdef;
 | 
			
		||||
        def        : tdef;
 | 
			
		||||
      begin
 | 
			
		||||
        result:=false;
 | 
			
		||||
        { when the class passed is defined in this unit we
 | 
			
		||||
          need to use the scope of that class. This is a trick
 | 
			
		||||
          that can be used to access protected members in other
 | 
			
		||||
          units. At least kylix supports it this way (PFV) }
 | 
			
		||||
        if assigned(classh) and
 | 
			
		||||
           (classh.owner.symtabletype in [globalsymtable,staticsymtable]) and
 | 
			
		||||
           classh.owner.iscurrentunit then
 | 
			
		||||
          topclassh:=classh
 | 
			
		||||
        else
 | 
			
		||||
          begin
 | 
			
		||||
            if assigned(current_procinfo) then
 | 
			
		||||
              topclassh:=current_procinfo.procdef._class
 | 
			
		||||
            else
 | 
			
		||||
              topclassh:=nil;
 | 
			
		||||
          end;
 | 
			
		||||
        def:=nil;
 | 
			
		||||
        while assigned(classh) do
 | 
			
		||||
          begin
 | 
			
		||||
@ -1826,25 +1810,9 @@ implementation
 | 
			
		||||
 | 
			
		||||
    function searchsym_in_class_by_msgstr(classh:tobjectdef;const s:string;out srsym:tsym;out srsymtable:tsymtable):boolean;
 | 
			
		||||
      var
 | 
			
		||||
        topclassh  : tobjectdef;
 | 
			
		||||
        def        : tdef;
 | 
			
		||||
      begin
 | 
			
		||||
        result:=false;
 | 
			
		||||
        { when the class passed is defined in this unit we
 | 
			
		||||
          need to use the scope of that class. This is a trick
 | 
			
		||||
          that can be used to access protected members in other
 | 
			
		||||
          units. At least kylix supports it this way (PFV) }
 | 
			
		||||
        if assigned(classh) and
 | 
			
		||||
           (classh.owner.symtabletype in [globalsymtable,staticsymtable]) and
 | 
			
		||||
           classh.owner.iscurrentunit then
 | 
			
		||||
          topclassh:=classh
 | 
			
		||||
        else
 | 
			
		||||
          begin
 | 
			
		||||
            if assigned(current_procinfo) then
 | 
			
		||||
              topclassh:=current_procinfo.procdef._class
 | 
			
		||||
            else
 | 
			
		||||
              topclassh:=nil;
 | 
			
		||||
          end;
 | 
			
		||||
        def:=nil;
 | 
			
		||||
        while assigned(classh) do
 | 
			
		||||
          begin
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user