[squeak-dev] The Trunk: Protocols-ct.78.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Nov 18 16:01:41 UTC 2021

Marcel Taeumel uploaded a new version of Protocols to project The Trunk:

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

Name: Protocols-ct.78
Author: ct
Time: 2 March 2021, 3:45:36.46717 pm
UUID: 0213a785-c806-e344-83fb-4876ec5be7ee
Ancestors: Protocols-mt.77

Refactors removal of selectors. Complements System-ct.1221.

=============== Diff against Protocols-mt.77 ===============

Item was changed:
  ----- Method: Lexicon>>removeMessage (in category 'menu commands') -----
- 	"Remove the selected message from the system."
+ 	super removeMessage ifFalse: [^ false].
- 	messageListIndex = 0 ifTrue: [^ self].
- 	self okToChange ifFalse: [^ self].
- 	super removeMessage.
  	"my #reformulateList method, called from the super #removeMethod method, will however try to preserve the selection, so we take pains to clobber it by the below..."
  	messageListIndex := 0.
  	self changed: #messageList.
  	self changed: #messageListIndex.
  	contents := nil.
  	self contentsChanged!

More information about the Squeak-dev mailing list