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

commits at source.squeak.org commits at source.squeak.org
Tue Mar 2 14:45:38 UTC 2021


Christoph Thiede uploaded a new version of Protocols to project The Inbox:
http://source.squeak.org/inbox/Protocols-ct.78.mcz

==================== 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') -----
  removeMessage
- 	"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