Re: dead code elimination of unused method arguments?
Thanks Manuel. I know that, but the exact features/limits are unclear and vague, which is understandable as it constantly under development. Also there are still some tickets open about dead code elimination that doesn't work bullet proof. I think I just test it myself. I did that with some other global variables which should, but where not eliminated (ticket in ticket system)... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
dead code elimination of unused method arguments?
Hellu, Does the GWT compiler currently support the removal of unused method arguments? And if not, will this be supported? Example: Suppose you have the method: doSomething(final boolean hellu, final String info). This method is located in different implementations that are used depending on gwt property that is set in the gwt.xml file. In one environment this argument info isn't used at all in the method body. Will it then automatically be removed? And as such also in the client code that is calling this method ? Suppose that in the client we have something like this: doSomething (true, createInfo()). If this method createInfo() is only called in this method call, will it then also be removed? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: dead code elimination of unused method arguments?
as I know, Gwt compiler removes all unused stuff from your application and inherited modules. It removes classes, methods, attributes ... Manolo Carrasco On Sun, Aug 2, 2009 at 2:37 PM, Edpost2edb...@hotmail.com wrote: Hellu, Does the GWT compiler currently support the removal of unused method arguments? And if not, will this be supported? Example: Suppose you have the method: doSomething(final boolean hellu, final String info). This method is located in different implementations that are used depending on gwt property that is set in the gwt.xml file. In one environment this argument info isn't used at all in the method body. Will it then automatically be removed? And as such also in the client code that is calling this method ? Suppose that in the client we have something like this: doSomething (true, createInfo()). If this method createInfo() is only called in this method call, will it then also be removed? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---