Skip to content

Remove PAL oleauto.h shim and stale CoreCLR includes#129874

Open
Copilot wants to merge 1 commit into
mainfrom
copilot/delete-dead-code-oleauto
Open

Remove PAL oleauto.h shim and stale CoreCLR includes#129874
Copilot wants to merge 1 commit into
mainfrom
copilot/delete-dead-code-oleauto

Conversation

Copilot AI commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

src/coreclr/pal/inc/rt/oleauto.h was a PAL-era shim that is no longer needed for current CoreCLR builds.

Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 26, 2026 00:38
Copilot AI removed the request for review from Copilot June 26, 2026 00:38
@jkotas jkotas marked this pull request as ready for review June 26, 2026 00:39
Copilot AI review requested due to automatic review settings June 26, 2026 00:39
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes the legacy PAL oleauto.h shim header and cleans up a few now-stale CoreCLR include directives that referenced it, reducing unnecessary header dependencies.

Changes:

  • Removed #include <oleauto.h> from CoreCLR headers that no longer require it.
  • Deleted src/coreclr/pal/inc/rt/oleauto.h (PAL-era shim) now that it has no remaining consumers.
  • Simplified metainfo tooling headers by dropping a TARGET_UNIX-only include of oleauto.h.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/coreclr/vm/comdatetime.h Drops unused oleauto.h include from COM date/time helper header.
src/coreclr/tools/metainfo/mdinfo.h Removes TARGET_UNIX oleauto.h include; winwrap.h/PAL types already cover needed declarations for non-COM paths.
src/coreclr/pal/inc/rt/oleauto.h Deletes the unused PAL shim header (no remaining references under CoreCLR).
src/coreclr/inc/utilcode.h Removes redundant oleauto.h include (keeps ole2.h).

@jkotas jkotas requested a review from AaronRobinsonMSFT June 26, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants