Parser-removeUnusedTemps enhancement

Romain Robbes romain.robbes at gmail.com
Wed Oct 3 08:03:19 UTC 2007


When accepting a method, if the parser encounters an unused temporary  
variable, it offers to remove it.
However half of the time the variable is stored into, and the parser  
does not remove it, instead telling that you should first remove the  
statement where the variable is stored.

With this fix (basically reordering the test and the user  
confirmation) only the variables which are truly unused are removed.
The code of the method is simpler too.

	Romain

--
Romain Robbes
http://romain.robb.es


-------------- next part --------------
Skipped content of type multipart/mixed


More information about the Squeak-dev mailing list