Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit75e37cd

Browse files
committed
FX_NO_TO_LOWER_INVARIANT -- dead code removal
1 parent954acc9 commit75e37cd

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

‎src/fsharp/FSharp.Core.Unittests/FSharp.Core/PrimTypes.fs‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ type LanguagePrimitivesModule() =
8989
memberthis.GuidToString()=
9090
lets="F99D95E0-2A5E-47c4-9B92-6661D65AE6B3"
9191
letguid=new Guid(s)
92-
#if FX_NO_TO_LOWER_INVARIANT
93-
Assert.AreEqual((string guid).ToLower(), s.ToLower())
94-
#else
9592
Assert.AreEqual((string guid).ToLowerInvariant(), s.ToLowerInvariant())
96-
#endif
9793

9894
[<Test>]
9995
memberthis.GenericComparison()=

‎src/fsharp/FSharp.Core/prim-types.fs‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,23 +2312,15 @@ namespace Microsoft.FSharp.Core
23122312
// and only request AllowLeadingSign.
23132313

23142314
letisOXB c=
2315-
#if FX_NO_TO_LOWER_INVARIANT
2316-
letc= System.Char.ToLower c
2317-
#else
23182315
letc= System.Char.ToLowerInvariant c
2319-
#endif
23202316
charEq c'x'|| charEq c'o'|| charEq c'b'
23212317

23222318
letis0OXB(s:string)p l=
23232319
l>= p+2&& charEq(s.Chars(p))'0'&& isOXB(s.Chars(p+1))
23242320

23252321
letget0OXB(s:string)(p:byref<int>)l=
23262322
if is0OXB s p l
2327-
#if FX_NO_TO_LOWER_INVARIANT
2328-
thenletr= System.Char.ToLower(s.Chars(p+1))in p<- p+2; r
2329-
#else
23302323
thenletr= System.Char.ToLowerInvariant(s.Chars(p+1))in p<- p+2; r
2331-
#endif
23322324
else'd'
23332325

23342326
letgetSign32(s:string)(p:byref<int>)l=
@@ -2380,11 +2372,7 @@ namespace Microsoft.FSharp.Core
23802372
letsign= getSign32 s&p l
23812373
letspecifier= get0OXB s&p l
23822374
if p>= lthen formatError()else
2383-
#if FX_NO_TO_LOWER_INVARIANT
2384-
match Char.ToLower(specifier, CultureInfo.InvariantCulture(*FxCop:1304*))with
2385-
#else
23862375
match Char.ToLowerInvariant(specifier)with
2387-
#endif
23882376
|'x'-> sign*(int32OfUInt32(Convert.ToUInt32(UInt64.Parse(s.Substring(p), NumberStyles.AllowHexSpecifier,CultureInfo.InvariantCulture))))
23892377
|'b'-> sign*(int32OfUInt32(Convert.ToUInt32(parseBinaryUInt64 s p l)))
23902378
|'o'-> sign*(int32OfUInt32(Convert.ToUInt32(parseOctalUInt64 s p l)))
@@ -2399,11 +2387,7 @@ namespace Microsoft.FSharp.Core
23992387
letsign= getSign64 s&p l
24002388
letspecifier= get0OXB s&p l
24012389
if p>= lthen formatError()else
2402-
#if FX_NO_TO_LOWER_INVARIANT
2403-
match Char.ToLower(specifier, CultureInfo.InvariantCulture(*FxCop:1304*))with
2404-
#else
24052390
match Char.ToLowerInvariant(specifier)with
2406-
#endif
24072391
|'x'-> sign*. Int64.Parse(s.Substring(p), NumberStyles.AllowHexSpecifier,CultureInfo.InvariantCulture)
24082392
|'b'-> sign*.(int64OfUInt64(parseBinaryUInt64 s p l))
24092393
|'o'-> sign*.(int64OfUInt64(parseOctalUInt64 s p l))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp