[squeak-dev] The Trunk: Traits-nice.235.mcz

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


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

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

Name: Traits-nice.235
Author: nice
Time: 19 October 2009, 9:28:54 am
UUID: f306a767-5412-ed49-ad53-6dd34f25bd9c
Ancestors: Traits-laza.234

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

=============== Diff against Traits-laza.234 ===============

Item was changed:
  ----- Method: TraitDescription>>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