@@ -1141,13 +1141,6 @@ public static DateTime ParseExact(String s, String format, IFormatProvider provi
11411141 return ( DateTimeParse . ParseExact ( s , format , DateTimeFormatInfo . GetInstance ( provider ) , style ) ) ;
11421142 }
11431143
1144- // TODO https://github.com/dotnet/corefx/issues/25337: Remove this overload once corefx is updated to target the new signatures
1145- public static DateTime ParseExact ( ReadOnlySpan < char > s , string format , IFormatProvider provider , DateTimeStyles style )
1146- {
1147- if ( format == null ) ThrowHelper . ThrowArgumentNullException ( ExceptionArgument . format ) ;
1148- return ParseExact ( s , ( ReadOnlySpan < char > ) format , provider , style ) ;
1149- }
1150-
11511144 public static DateTime ParseExact ( ReadOnlySpan < char > s , ReadOnlySpan < char > format , IFormatProvider provider , DateTimeStyles style = DateTimeStyles . None )
11521145 {
11531146 DateTimeFormatInfo . ValidateStyles ( style , nameof ( style ) ) ;
@@ -1300,10 +1293,6 @@ public String ToString(String format, IFormatProvider provider)
13001293 return DateTimeFormat . Format ( this , format , DateTimeFormatInfo . GetInstance ( provider ) ) ;
13011294 }
13021295
1303- // TODO https://github.com/dotnet/corefx/issues/25337: Remove this overload once corefx is updated to target the new signatures
1304- public bool TryFormat ( Span < char > destination , out int charsWritten , string format , IFormatProvider provider ) =>
1305- TryFormat ( destination , out charsWritten , ( ReadOnlySpan < char > ) format , provider ) ;
1306-
13071296 public bool TryFormat ( Span < char > destination , out int charsWritten , ReadOnlySpan < char > format = default , IFormatProvider provider = null ) =>
13081297 DateTimeFormat . TryFormat ( this , destination , out charsWritten , format , DateTimeFormatInfo . GetInstance ( provider ) ) ;
13091298
@@ -1359,18 +1348,6 @@ public static Boolean TryParseExact(String s, String format, IFormatProvider pro
13591348 return DateTimeParse . TryParseExact ( s , format , DateTimeFormatInfo . GetInstance ( provider ) , style , out result ) ;
13601349 }
13611350
1362- // TODO https://github.com/dotnet/corefx/issues/25337: Remove this overload once corefx is updated to target the new signatures
1363- public static bool TryParseExact ( ReadOnlySpan < char > s , string format , IFormatProvider provider , DateTimeStyles style , out DateTime result )
1364- {
1365- if ( format == null )
1366- {
1367- result = default ;
1368- return false ;
1369- }
1370-
1371- return TryParseExact ( s , ( ReadOnlySpan < char > ) format , provider , style , out result ) ;
1372- }
1373-
13741351 public static bool TryParseExact ( ReadOnlySpan < char > s , ReadOnlySpan < char > format , IFormatProvider provider , DateTimeStyles style , out DateTime result )
13751352 {
13761353 DateTimeFormatInfo . ValidateStyles ( style , nameof ( style ) ) ;
0 commit comments