Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 1, 2026

Description

ToUpperInvariantMode (both the char and ReadOnlySpan<char> overloads) in OrdinalCasing.Icu.cs have no callers anywhere in the codebase. The similar ToUpperOrdinal method is used instead.

Changes

  • Removed internal static char ToUpperInvariantMode(char c)
  • Removed public static void ToUpperInvariantMode(this ReadOnlySpan<char> source, Span<char> destination)

Verified via codebase-wide search that no code references these methods. Build passes.

Original prompt

ToUpperInvariantMode appears to be unused. Confirm and delete it.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove unused ToUpperInvariantMode Remove unused ToUpperInvariantMode methods Feb 1, 2026
Copilot AI requested a review from stephentoub February 1, 2026 12:06
@stephentoub stephentoub marked this pull request as ready for review February 1, 2026 12:45
Copilot AI review requested due to automatic review settings February 1, 2026 12:46
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

This PR removes two unused methods from OrdinalCasing.Icu.cs: ToUpperInvariantMode(char c) and ToUpperInvariantMode(ReadOnlySpan<char> source, Span<char> destination). These methods have no callers in the codebase. The similar ToUpperOrdinal method is used instead throughout the runtime for ordinal case conversions.

Changes:

  • Removed unused internal static char ToUpperInvariantMode(char c) method
  • Removed unused public static void ToUpperInvariantMode(ReadOnlySpan<char> source, Span<char> destination) extension method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants