Skip to content

Commit 77869cd

Browse files
committed
Remove unnecessary extension method
1 parent 3016370 commit 77869cd

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/Microsoft.OpenApi/Extensions/StringExtensions.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,5 @@ public static T GetEnumFromDisplayName<T>(this string displayName)
3838

3939
return default;
4040
}
41-
42-
/// <summary>
43-
/// Capitalizes each letter of a word in a string.
44-
/// </summary>
45-
/// <param name="input">String containing the words to be capitalized, delimited by the '-' character.</param>
46-
/// <returns>String value with each word capitalized and concatenated.</returns>
47-
public static string ToPascalCase(this string input)
48-
=> string.IsNullOrEmpty(input) ? input : string.Join(
49-
null, input.Split(
50-
new char[] { '-' }, StringSplitOptions.RemoveEmptyEntries)
51-
.Select(ToFirstCharacterUpperCase));
52-
53-
/// <summary>
54-
/// Capitalizes the first letter of an input string.
55-
/// </summary>
56-
/// <param name="input">String with first letter to be capitalized. </param>
57-
/// <returns>The string value with the first letter capitalized.</returns>
58-
public static string ToFirstCharacterUpperCase(this string input)
59-
=> string.IsNullOrEmpty(input) ? input : char.ToUpperInvariant(input.FirstOrDefault()) + input.Substring(1);
6041
}
6142
}

0 commit comments

Comments
 (0)