[Pkg] The Treated Inbox: Tools-lrnp.1144.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Apr 27 14:22:49 UTC 2022


Marcel Taeumel uploaded a new version of Tools to project The Treated Inbox:
http://source.squeak.org/treated/Tools-lrnp.1144.mcz

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

Name: Tools-lrnp.1144
Author: lrnp
Time: 28 March 2022, 2:14:18.999919 pm
UUID: 93cebbab-cdc7-4e8d-97c7-f8e7a099c4da
Ancestors: Tools-mt.1143

remove unneeded method in PackagePaneBrowser

Browser>>selectedSystemCategory is defined to return nil when nothing is selected, so remove the test in PackagePaneBrowser's version. Removing the test lets us remove the other method entirely.

PackagePaneBrowser>>hasSystemCategorySelected was only needed to avoid infinite recursion.

=============== Diff against Tools-mt.1143 ===============

Item was removed:
- ----- Method: PackagePaneBrowser>>hasSystemCategorySelected (in category 'system category list') -----
- hasSystemCategorySelected
- 	^ super selectedSystemCategory notNil.!

Item was changed:
  ----- Method: PackagePaneBrowser>>selectedSystemCategory (in category 'system category list') -----
  selectedSystemCategory
  	"Answer the name of the selected system category or nil."
  
- 	self hasSystemCategorySelected
- 		ifFalse: [^nil].
  	packageListIndex = 0
  		ifTrue: [^ super selectedSystemCategory ].
  	^ self package , '-' , super selectedSystemCategory!



More information about the Packages mailing list