-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 BitmapSelector.Suffix property #54364
Conversation
With dotnet#22761 and dotnet/corefx#22833, BitmapSelector.Suffix will always be null. This means this feature is dead code, and users are unable to use it. Removing this dead code because: 1. It doesn't do anything. 2. It is causing ILLink warnings, and it is easier to delete than to try to address the warnings. I logged https://github.com/dotnet/runtime/issues/54363 to follow up and either re-implement this feature, or obsolete the attributes that no longer have any effect on the app.
Tagging subscribers to this area: @safern, @tarekgh Issue DetailsWith #22761 and dotnet/corefx#22833, BitmapSelector.Suffix will always be null. This means this feature is dead code, and users are unable to use it. Removing this dead code because:
I logged dotnet/winforms#8832 to follow up and either re-implement this feature, or obsolete the attributes that no longer have any effect on the app.
|
I am not objecting the changes here as it makes sense. Just wondering, if we decided to implement this feature, do you think the linker can complain at that time again? or it depends on what we'll do during then? |
The linker was complaining about the following lines: runtime/src/libraries/System.Drawing.Common/src/System/Drawing/BitmapSelector.cs Lines 88 to 131 in 72a26f9
What this was doing was looking for these 2 attributes in the same assembly as the If we decided to implement this feature, we could decide to not support looking these attributes up by name in the assembly and only look for our publicly declared attributes. This wouldn't cause any warnings. Alternatively, the linker will only trim attributes it is explicitly told to trim, for example here. So another approach could be to just suppress the linker warning, and assuming no one is trying to trim these attributes. |
With #22761 and dotnet/corefx#22833, BitmapSelector.Suffix will always be null. This means this feature is dead code, and users are unable to use it.
Removing this dead code because:
I logged dotnet/winforms#8832 to follow up and either re-implement this feature, or obsolete the attributes that no longer have any effect on the app.