-
Notifications
You must be signed in to change notification settings - Fork 361
Clean up abstract classes that only contain static methods #9170
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
Conversation
| /// A namespace for VM service related server request handlers. | ||
| @visibleForTesting | ||
| abstract class Handler { | ||
| extension VmServiceHandler on Never { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically a breaking rename, but this is a visibleForTesting member so no changelog update / version bump required.
| required String vmServiceUriAsString, | ||
| required Uri vmServiceUri, | ||
| required bool connected, | ||
| // ignore: avoid-unused-parameters, false positive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @incendial, this parameter is used directly above on line 83.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this lint indicating that it isn't used inside this function? That seems correct.
We could mark it deprecated if we don't want to remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah... good point. Removed.
Note: `Handler` was removed from `devtools_server` in flutter/devtools#9170 Change-Id: Ic29658a1caece780a72125ca8ed040bbdc2405e6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426540 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Elliott Brooks <[email protected]> Reviewed-by: Kenzie Davisson <[email protected]>
Fixes #9169.