The Trunk: Traits-nice.235.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Traits-nice.235.mcz

commits-2
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]!