Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtAllKeyCategoryPairs does not exist but it still called #15925

Closed
Ducasse opened this issue Jan 6, 2024 · 8 comments
Closed

gtAllKeyCategoryPairs does not exist but it still called #15925

Ducasse opened this issue Jan 6, 2024 · 8 comments
Assignees

Comments

@Ducasse
Copy link
Member

Ducasse commented Jan 6, 2024

spotterForKeysFor: aStep
	<stSpotterOrder: 15>
		
	aStep listProcessor
			title: 'Keys';
			allCandidates: [ (self gtAllKeyCategoryPairs collect: [:each | each key]) asOrderedCollection ];
			itemName: [ :aKeymap | 
				aKeymap shortcut displayString, 
				(aKeymap name ifNil: [ '' ] ifNotNil: [ ' [', aKeymap name,']' ]) ];
			candidatesLimit: 5;
			filter: StFilterSubstring
@jecisc
Copy link
Member

jecisc commented Jan 8, 2024

I have the impression that a lot of extensions of the Spotter are never called. I removed multiple things related to Packages and Monticello calling code that just could not work a few weeks ago and if we never had a DNU this means that either we have a #on:do: or that the code is dead code.

@MarcusDenker
Copy link
Member

I think they are part of feature of spotter that we never use: if you inspect an object, you can use spotter on that object and the subgraph of it (depending of these implemented exptensions).

@Ducasse
Copy link
Member Author

Ducasse commented Jan 9, 2024

let us remove it.

@hernanmd
Copy link
Member

I found a way to reproduce this:

StSpotter openOnOrigin: KMDispatcher allInstances anyOne.

However as I don't use Spotter, I don't know if this is a valid use case.
Do you want me to reinstate the missing method or just kill it?

Screenshot 2024-01-29 at 15 53 28

@Ducasse
Copy link
Member Author

Ducasse commented Jan 30, 2024

Let us remove the methods.

@Ducasse
Copy link
Member Author

Ducasse commented Jan 30, 2024

When we do not use something for more than 4 years then it does exist and the rest is dead code.

@hernanmd
Copy link
Member

When we do not use something for more than 4 years then it does exist and the rest is dead code.

Rog that. In pharo-spec/NewTools#676

@hernanmd
Copy link
Member

Merged in NewTools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

4 participants