-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Remove dead code #104561
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 dead code #104561
Conversation
|
@christopherfujino Can we delete all of this? Appears to be unused from within the tool. |
|
Wow! |
|
We definitely can't merge this as is, for example I think we should probably break this up into smaller PRs that can be more easily reviewed (and potentially reverted). I'm marking this a draft and I'll get the ball rolling with a PR with some obvious deletions. |
|
@goderbauer I'm curious as to what the obvious false positives the tool detected were? |
|
I scheduled a FRoB run, for science |
There was some code that was used only by tests that the tool wanted to delete. Also, I excluded
Makes sense. Maybe we should include that information about proxied_devices.dart in its doc comment.
I thought I reverted all the changes under
Sounds good! Thanks for getting the ball rolling! |
|
I'm waiting for Google testing to finish before opening my follow-up PR |
|
From looking at some of the failing tests it looks like google3 is unhappy about the removal of |
8231f2e to
fc51274
Compare
|
@christopherfujino Do you know what button I need to click in FRoB to trigger another test run with the latest commit? |
|
Since I didn't know how to retrigger FRoB on an existing PR, I opened a new one with the changes discussed in the comment above. Looks like Google3 is now fine with this: http://flutter-rob/#/flutter/premerge_prs?pr=104652. @christopherfujino I'll let you take it from here and decide how you want to split this up. |
I am experimenting with the dead code detector from https://pub.dev/packages/dart_code_metrics. This is what in found running on the tool (and some obvious false positives not included in this PR).
$ dart run dart_code_metrics:metrics check-unused-code libinpackages/flutter_tool.