diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
index cb9525b49c9..df67e075aca 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
@@ -68,19 +68,6 @@ namespace Godot
return string.Empty;
}
- ///
- /// Returns if the strings begins
- /// with the given string .
- ///
- /// The string to check.
- /// The beginning string.
- /// If the string begins with the given string.
- [Obsolete("Use string.StartsWith instead.")]
- public static bool BeginsWith(this string instance, string text)
- {
- return instance.StartsWith(text);
- }
-
///
/// Returns the bigrams (pairs of consecutive letters) of this string.
///
@@ -618,7 +605,7 @@ namespace Godot
}
else
{
- if (instance.BeginsWith("/"))
+ if (instance.StartsWith('/'))
{
rs = instance.Substring(1);
directory = "/";
@@ -1198,23 +1185,6 @@ namespace Godot
return instance.Substring(0, pos);
}
- ///
- /// Returns a copy of the string with characters removed from the left.
- /// The argument is a string specifying the set of characters
- /// to be removed.
- /// Note: The is not a prefix. See
- /// method that will remove a single prefix string rather than a set of characters.
- ///
- ///
- /// The string to remove characters from.
- /// The characters to be removed.
- /// A copy of the string with characters removed from the left.
- [Obsolete("Use string.TrimStart instead.")]
- public static string LStrip(this string instance, string chars)
- {
- return instance.TrimStart(chars.ToCharArray());
- }
-
///
/// Do a simple expression match, where '*' matches zero or more
/// arbitrary characters and '?' matches any single character except '.'.
@@ -1503,23 +1473,6 @@ namespace Godot
return instance.Substring(pos, instance.Length - pos);
}
- ///
- /// Returns a copy of the string with characters removed from the right.
- /// The argument is a string specifying the set of characters
- /// to be removed.
- /// Note: The is not a suffix. See
- /// method that will remove a single suffix string rather than a set of characters.
- ///
- ///
- /// The string to remove characters from.
- /// The characters to be removed.
- /// A copy of the string with characters removed from the right.
- [Obsolete("Use string.TrimEnd instead.")]
- public static string RStrip(this string instance, string chars)
- {
- return instance.TrimEnd(chars.ToCharArray());
- }
-
///
/// Returns the SHA-1 hash of the string as an array of bytes.
///