Browse Source

pastojs: clean up

mattias 4 years ago
parent
commit
7e556c55f2
1 changed files with 0 additions and 6 deletions
  1. 0 6
      compiler/packages/pastojs/src/fppas2js.pp

+ 0 - 6
compiler/packages/pastojs/src/fppas2js.pp

@@ -26396,13 +26396,7 @@ begin
            or (C=TPasClassDestructor) then
            or (C=TPasClassDestructor) then
           AddGlobalClassMethod(FuncContext,TPasProcedure(P))
           AddGlobalClassMethod(FuncContext,TPasProcedure(P))
         else
         else
-          begin
           Methods.Add(P);
           Methods.Add(P);
-          if (C=TPasConstructor)
-              or ((aResolver<>nil) and aResolver.IsClassMethod(P)
-                and not aResolver.MethodIsStatic(TPasProcedure(P))) then
-            ; //IsComplex:=true; // needs $record
-          end;
         end
         end
       else if C=TPasAttributes then
       else if C=TPasAttributes then
       else
       else