Skip to content

Remove/move internal vftbl types#1493

Merged
Sergio0694 merged 7 commits intostaging/AOTfrom
user/sergiopedri/remove-unused-vftbls
Feb 2, 2024
Merged

Remove/move internal vftbl types#1493
Sergio0694 merged 7 commits intostaging/AOTfrom
user/sergiopedri/remove-unused-vftbls

Conversation

@Sergio0694
Copy link
Member

@Sergio0694 Sergio0694 commented Feb 1, 2024

This PR tweaks two vftbl types we had in the shared code:

  • Removes IActivationFactoryVftbl, as it was not needed (should also save minimal size)
  • Moves IReferenceTrackerTargetVftbl to WinRT.Runtime, as it's only needed internally now
  • Move IDelegateVftbl to WinRT.Runtime, only make it public downlevel (otherwise, internal)
@Sergio0694 Sergio0694 added code cleanup Code cleanup and refactoring trimming labels Feb 1, 2024
@Sergio0694 Sergio0694 requested a review from manodasanW February 1, 2024 22:37
{
// This is internal both in the embedded case, but also if we're on modern .NET,
// because projections only use this vftbl type downlevel, and running older
// projections against a .NET version of CsWinRT is not supported.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// projections against a .NET version of CsWinRT is not supported.
// projections against a newer version of CsWinRT is not supported.
@Sergio0694 Sergio0694 merged commit 5861cf9 into staging/AOT Feb 2, 2024
@Sergio0694 Sergio0694 deleted the user/sergiopedri/remove-unused-vftbls branch February 2, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code cleanup Code cleanup and refactoring trimming

2 participants