-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove unused _TypeNone enum field. #14440
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2633,6 +2633,7 @@ class ColorFilter { | |
|
|
||
| // The type of SkColorFilter class to create for Skia. | ||
| // These constants must be kept in sync with ColorFilterType in paint.cc. | ||
| // ignore:unused_field | ||
| static const int _TypeNone = 0; // null | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather than adding an ignore, let's just remove the unused field. We should also do the same in the web_ui painting.dart
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no _TypeNone in web_ui painting.dart as far as I can tell
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Done
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, got you. Interestingly this is not picked up by analyzer as unused field. |
||
| static const int _TypeMode = 1; // MakeModeFilter | ||
| static const int _TypeMatrix = 2; // MakeMatrixFilterRowMajor255 | ||
|
|
||
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.
This line is no longer true and should just be removed.
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.
Done