Refactor `Ide.waitWorkspaceAndIde` method removing unused arguments
See original GitHub issueIs your enhancement related to a problem? Please describe.
It is not a problem, but it’s cleaning up of code that influences all the tests that use this method
Describe the solution you’d like
In pageobjects/ide/Ide.ts
method waitWorkspaceAndIde
still contains two arguments which have been previously used for creating a locator for workspace status indentificator in the left panel of Che
The method was removed, but the arguments it used remained behind.
I would like to go through the classes and tests and remove those unused variables.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Remove Unused Parameter | CodeRush
Removes a method parameter if it is never referenced in the method body code. Note. Remove Unused Parameter is a cascading Refactoring.
Read more >IDE0060: Remove unused parameter - .NET - Microsoft Learn
Overview. This rule flags unused parameters. This rule does not flag parameters that are named with the discard symbol _ .
Read more >Safe Delete refactoring | ReSharper Documentation - JetBrains
If you only need to remove unused references, use the Remove Unused References refactoring or the Optimize References command.
Read more >Remove Parameter - Refactoring.Guru
Problem: A parameter isn't used in the body of a method. Solution: Remove the unused parameter.
Read more >22381 – Show unused fields and variables [refactoring] [search]
Also an command "Cleanup fields and variables" would be fine...As example have a look at ... The functionality exists for unused locals and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
According to the history https://github.com/eclipse/che/blob/master/tests/e2e/pageobjects/ide/PreviewWidget.ts#L44-L59 looks like that method logic has been changed and variables became unnecessary but were not deleted. If you don’t mind it would be great in the frame of this issue add to the tslint configuration a rule about unused arguments. Here is an explanation with example: https://palantir.github.io/tslint/rules/no-unused-variable/
Issues go stale after
180
days of inactivity.lifecycle/stale
issues rot after an additional7
days of inactivity and eventually close.Mark the issue as fresh with
/remove-lifecycle stale
in a new comment.If this issue is safe to close now please do so.
Moderators: Add
lifecycle/frozen
label to avoid stale mode.