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

refactor(lsp): remove unused code #9897

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

magurotuna
Copy link
Member

@magurotuna magurotuna commented Mar 26, 2021

This patch removes the asset field of State because it seems to be unused.

Taking a glance at the commit history, this field was introduced in #8771, and at that time the field value was used in the request_asset function.
After that, in #8727, both request_asset and invoking op_set_asset from JS were removed:

So since then, the asset field of State struct has seemed to be unused. I wonder why "unused" warning didn't emerge at that time though. (#[allow(unused)] was added today in #9895)

Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kitsonk kitsonk merged commit 385b144 into denoland:main Mar 26, 2021
@magurotuna magurotuna deleted the remove-unused-code branch March 26, 2021 04:48
kitsonk pushed a commit that referenced this pull request Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants