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 to remove unneeded isLessVariable() utility #6995

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

ybiquitous
Copy link
Member

@ybiquitous ybiquitous commented Jun 27, 2023

Which issue, if any, is this issue related to?

None.

Is there anything in the PR that needs further explanation?

No grep match:

$ git grep 'isLessVariable' || echo '(no match)'
(no match)

Also, this change adds a tiny script to find unused module files:

$ node scripts/find-unused-modules.mjs
lib/utils/isStandardSyntaxMathFunction.js
lib/utils/isStandardSyntaxMediaFeature.js

I will address other unused files later with follow-up PRs.


Note: See also #6971 (comment)

I tried the ESLint rule import/no-unused-modules, but it didn't work expectedly. Please help if anyone knows. If the rule works, it's preferred over the custom script.

@changeset-bot
Copy link

changeset-bot bot commented Jun 27, 2023

⚠️ No Changeset found

Latest commit: 6099ef6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

No grep match:

```console
$ git grep 'isLessVariable' || echo '(no match)'
(no match)
```

Also, this change adds a tiny script to find unused module files:

```console
$ node scripts/find-unused-modules.mjs
lib/utils/isStandardSyntaxMathFunction.js
lib/utils/isStandardSyntaxMediaFeature.js
```

I will address other unused files later.
@ybiquitous ybiquitous force-pushed the remove-unneeded-isLessVariable branch from beadaa8 to 6099ef6 Compare June 27, 2023 22:43
@ybiquitous ybiquitous marked this pull request as ready for review June 27, 2023 23:55
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

Once the 15.0.0 unneeded files are removed, let's rebase #6979 and run the script as part of that pull request as I suspect more files we made unneeded.

@ybiquitous
Copy link
Member Author

Okay, I'll do it. 👍🏼

@ybiquitous ybiquitous merged commit 067cb27 into main Jun 28, 2023
18 checks passed
@ybiquitous ybiquitous deleted the remove-unneeded-isLessVariable branch June 28, 2023 07:53
mattxwang pushed a commit that referenced this pull request Jun 29, 2023
No grep match:

```console
$ git grep 'isLessVariable' || echo '(no match)'
(no match)
```

Also, this change adds a tiny script to find unused module files:

```console
$ node scripts/find-unused-modules.mjs
lib/utils/isStandardSyntaxMathFunction.js
lib/utils/isStandardSyntaxMediaFeature.js
```

I will address other unused files later.
ybiquitous added a commit that referenced this pull request Nov 13, 2023
This script file was added in #6995. We don't need it anymore since unused modules were resolved.
ybiquitous added a commit that referenced this pull request Nov 13, 2023
Remove unused `scripts/find-unused-modules.mjs`

This script file was added in #6995. We don't need it anymore since unused modules were resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants