The Trunk: Collections-ul.551.mcz

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

The Trunk: Collections-ul.551.mcz

commits-2
Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.551.mcz

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

Name: Collections-ul.551
Author: ul
Time: 15 December 2013, 8:21:59.982 pm
UUID: 185f3154-6e81-495e-9cf2-27e2ff132f54
Ancestors: Collections-dtl.550

Removed migration code from LRUCache for real.

=============== Diff against Collections-dtl.550 ===============

Item was removed:
- ----- Method: LRUCache>>isMigrated (in category 'migration') -----
- isMigrated
-
- ^map notNil!

Item was removed:
- ----- Method: LRUCache>>migrate (in category 'migration') -----
- migrate
-
- self isMigrated ifTrue: [ ^self ].
- head := Array new: 2.
- head
- at: 1 put: head;
- at: 2 put: head.
- map := PluggableDictionary integerDictionary.
- values reverseDo: [ :each |
- | node |
- node := { nil. nil. each first. each third }.
- map at: each first put: node.
- self moveToFirst: node ].
- values := nil
- !