Skip to content

Delete GetFriendlyErrorCodeString and HAVE_STRERRORNAME_NP#124090

Merged
jkotas merged 2 commits intomainfrom
copilot/remove-getfriendlyerrorcodeststring
Feb 6, 2026
Merged

Delete GetFriendlyErrorCodeString and HAVE_STRERRORNAME_NP#124090
jkotas merged 2 commits intomainfrom
copilot/remove-getfriendlyerrorcodeststring

Conversation

Copy link
Contributor

Copilot AI commented Feb 6, 2026

Description

Removes unused GetFriendlyErrorCodeString function and its associated HAVE_STRERRORNAME_NP CMake configuration. No callsites exist in the codebase.

Changes

  • Removed GetFriendlyErrorCodeString declaration and 57-line implementation from PAL utils
  • Removed HAVE_STRERRORNAME_NP CMake check and browser tryrun cache entry

Files Modified

  • src/coreclr/pal/src/include/pal/utils.h
  • src/coreclr/pal/src/misc/utils.cpp
  • src/coreclr/pal/src/configure.cmake
  • eng/native/tryrun.browser.cmake
Original prompt

Create PR that deletes GetFriendlyErrorCodeString and HAVE_STRERRORNAME_NP. Dead code


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@jkotas jkotas marked this pull request as ready for review February 6, 2026 15:09
Copilot AI review requested due to automatic review settings February 6, 2026 15:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes PAL dead code related to generating “friendly” errno names and removes the associated (unused) CMake feature detection for strerrorname_np.

Changes:

  • Deleted GetFriendlyErrorCodeString declaration and implementation from PAL utilities.
  • Removed HAVE_STRERRORNAME_NP detection from PAL CMake configuration.
  • Removed HAVE_STRERRORNAME_NP from the browser tryrun cache.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/coreclr/pal/src/misc/utils.cpp Removes GetFriendlyErrorCodeString implementation.
src/coreclr/pal/src/include/pal/utils.h Removes GetFriendlyErrorCodeString declaration.
src/coreclr/pal/src/configure.cmake Removes strerrorname_np feature check / HAVE_STRERRORNAME_NP definition.
eng/native/tryrun.browser.cmake Removes cached HAVE_STRERRORNAME_NP entry for browser tryrun.

Copilot AI changed the title [WIP] Remove GetFriendlyErrorCodeString and HAVE_STRERRORNAME_NP dead code Delete GetFriendlyErrorCodeString and HAVE_STRERRORNAME_NP Feb 6, 2026
Copilot AI requested a review from jkotas February 6, 2026 15:12
@jkotas jkotas requested a review from jkoritzinsky February 6, 2026 15:35
@jkotas
Copy link
Member

jkotas commented Feb 6, 2026

/ba-g infrastructure timeouts

@jkotas jkotas merged commit a53ca8c into main Feb 6, 2026
160 of 164 checks passed
@github-project-automation github-project-automation bot moved this to Done in AppModel Feb 6, 2026
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the copilot/remove-getfriendlyerrorcodeststring branch February 6, 2026 19:33
lewing pushed a commit to lewing/runtime that referenced this pull request Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants