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

Remove unused code #1061

Merged
merged 4 commits into from
Nov 8, 2019
Merged

Remove unused code #1061

merged 4 commits into from
Nov 8, 2019

Conversation

chancancode
Copy link
Member

The inspector used to support filtering out components in the view tab, and there are a lot of supporting code for that. Since the view tab was removed, there is no longer any way to set this option, and it is always true in practice.

The inspector used to support filtering out components in the view
tab, and there are a lot of supporting code for that. Since the
view tab was removed, there is no longer any way to set this option,
and it is always true in practice.
@wycats wycats force-pushed the rm-components-options branch from 7d07a57 to 9892ccd Compare November 8, 2019 00:56
This property contains the "full" class name string, something like
`<app@component:textarea::ember545>` as opposed to `textarea`. It is
only set but never read by anything.
This method is defined but never used. It is also the only thing
that reads the `isVirtual` property, which is an Ember 1.0-ism that
is no longer needed.
Most of the job of view-debug has already been moved to glimmer-tree,
leaving behind a lot of code that was never called.
@chancancode chancancode changed the title Remove unused options Remove unused code Nov 8, 2019
@RobbieTheWagner RobbieTheWagner merged commit dc1d62d into master Nov 8, 2019
@RobbieTheWagner RobbieTheWagner deleted the rm-components-options branch November 8, 2019 02:42
@nummi
Copy link
Collaborator

nummi commented Nov 9, 2019

image

🎉

patricklx pushed a commit to patricklx/ember-inspector that referenced this pull request Sep 19, 2022
* Remove unused options

The inspector used to support filtering out components in the view
tab, and there are a lot of supporting code for that. Since the
view tab was removed, there is no longer any way to set this option,
and it is always true in practice.

* Remove unused `completeViewClass` property

This property contains the "full" class name string, something like
`<app@component:textarea::ember545>` as opposed to `textarea`. It is
only set but never read by anything.

* Remove unused `shouldShowView` method

This method is defined but never used. It is also the only thing
that reads the `isVirtual` property, which is an Ember 1.0-ism that
is no longer needed.

* Remove a lot (!) of unused code!

Most of the job of view-debug has already been moved to glimmer-tree,
leaving behind a lot of code that was never called.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants