2
0
Эх сурвалжийг харах

Remove the (now) non-functional check for inline specialization.

git-svn-id: branches/svenbarth/generics@17540 -
svenbarth 14 жил өмнө
parent
commit
95e2e28100

+ 0 - 5
compiler/pexpr.pas

@@ -2029,11 +2029,6 @@ implementation
                        if (hdef=cvarianttype) and
                        if (hdef=cvarianttype) and
                           not(cs_compilesystem in current_settings.moduleswitches) then
                           not(cs_compilesystem in current_settings.moduleswitches) then
                          current_module.flags:=current_module.flags or uf_uses_variants;
                          current_module.flags:=current_module.flags or uf_uses_variants;
-                       { if we get a generic then check that it is not an inline specialization }
-                       if (df_generic in hdef.defoptions) and
-                          (token=_LT) and
-                          (m_delphi in current_settings.modeswitches) then
-                          generate_specialization(hdef,false,nil);
                        if try_to_consume(_LKLAMMER) then
                        if try_to_consume(_LKLAMMER) then
                         begin
                         begin
                           p1:=comp_expr(true,false);
                           p1:=comp_expr(true,false);