[squeak-dev] The Trunk: Kernel-nice.273.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Oct 19 21:19:02 UTC 2009


Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.273.mcz

==================== Summary ====================

Name: Kernel-nice.273
Author: nice
Time: 19 October 2009, 9:18:29 am
UUID: 61ab2bcb-21a7-7145-ba01-19ce66e0ad5f
Ancestors: Kernel-nice.272

remove uncessary sends of #values
because (aDictionary values do:) is same as (aDictionary do:)
except when self modified in the do loop.

=============== Diff against Kernel-nice.272 ===============

Item was changed:
  ----- Method: ClassDescription>>linesOfCode (in category 'private') -----
  linesOfCode
  	"An approximate measure of lines of code.
  	Includes comments, but excludes blank lines."
  	| lines |
+ 	lines := self methodDict inject: 0 into: [:sum :each | sum + each linesOfCode].
- 	lines := self methodDict values inject: 0 into: [:sum :each | sum + each linesOfCode]. 
  	self isMeta 
  		ifTrue: [^ lines]
  		ifFalse: [^ lines + self class linesOfCode]!




More information about the Squeak-dev mailing list