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 members in executable libs #107464

Merged
merged 2 commits into from
Jul 12, 2022
Merged

Conversation

a14n
Copy link
Contributor

@a14n a14n commented Jul 12, 2022

@flutter-dashboard flutter-dashboard bot added f: scrolling Viewports, list views, slivers, etc. team Infra upgrades, team productivity, code health, technical debt. See also team: labels. labels Jul 12, 2022
@a14n a14n requested a review from goderbauer July 12, 2022 13:44
Copy link
Member

@goderbauer goderbauer 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! This looks like a nice cleanup!

@@ -10,11 +10,9 @@
/// If asked to remove a release that is currently the release on that channel,
/// it will replace that release with the next most recent release on that
/// channel.

Copy link
Member

Choose a reason for hiding this comment

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

nit: keep this blank line.

@a14n a14n added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 12, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Jul 12, 2022

Try again when the tree status has been applied to this PR.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 12, 2022
@goderbauer
Copy link
Member

@a14n Does this PR clean up unused members across the entire flutter/flutter repository and we only had them in the dev directory? Or did you limit the clean-up to only the dev directory in the first place? (Just curious to know if there is more in our code base...)

@a14n
Copy link
Contributor Author

a14n commented Jul 12, 2022

I ran the lint rule on the entire flutter/flutter repo. There are only 2 reports that I didn't touch. Not really false-positive but strange code that I don't really understand:

@goderbauer
Copy link
Member

Thanks. Those two look like they are on purpose (I wish we would have added a comment to explain that when we first introduced them).

I am a little surprised it didn't find any of the stuff I found in #104561 with a different tool. Do you have any idea why those didn't show up?

@a14n a14n added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 12, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Jul 12, 2022

  • The status or check suite Mac plugin_lint_mac has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 12, 2022
@a14n
Copy link
Contributor Author

a14n commented Jul 12, 2022

I am a little surprised it didn't find any of the stuff I found in #104561 with a different tool. Do you have any idea why those didn't show up?

After a quick random check it looks like all those lib are not executable libraries (containing a main or a @pragma('vm:entry-point')). I guess the tool you used check usage in the whole /src but this kind of analysis is too heavy to run as a lint (on every changes).

@goderbauer
Copy link
Member

That makes sense. Thanks for checking!

@a14n a14n added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 12, 2022
@auto-submit auto-submit bot merged commit 93a74ca into flutter:master Jul 12, 2022
@a14n a14n deleted the dead_code branch July 13, 2022 06:53
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 13, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 13, 2022
camsim99 pushed a commit to camsim99/flutter that referenced this pull request Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App f: scrolling Viewports, list views, slivers, etc. team Infra upgrades, team productivity, code health, technical debt. See also team: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants