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

Commit3e4f232

Browse files
committed
FX_NO_EXIT --- dead code
1 parent6beed04 commit3e4f232

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4133,10 +4133,10 @@ namespace Microsoft.FSharp.Core
41334133

41344134
[<CompiledName("Decrement")>]
41354135
letdecrx=x.contents<- x.contents- 1
4136-
#if!FX_NO_EXIT
4136+
41374137
[<CompiledName("Exit")>]
41384138
letexit(n:int)=System.Environment.Exit(n);failwith "System.Environment.Exitdidnotexit!"
4139-
#endif
4139+
41404140
letinlineparseByte(s:string)=(#"conv.ovf.u1"(ParseUInt32 s): byte#)
41414141
letinlineParseSByte(s:string)=(#"conv.ovf.i1"(ParseInt32 s): sbyte#)
41424142
letinlineParseInt16(s:string)=(#"conv.ovf.i2"(ParseInt32 s): int16#)

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,15 +2235,12 @@ namespace Microsoft.FSharp.Core
22352235
[<CompiledName("CreateSequence")>]
22362236
valseq:sequence:seq<'T>->seq<'T>
22372237

2238-
2239-
#if!FX_NO_EXIT
22402238
/// <summary>Exit the current hardware isolated process, if security settings permit,
22412239
/// otherwise raise an exception. Calls <c>System.Environment.Exit</c>.</summary>
22422240
/// <param name="exitcode">The exit code to use.</param>
22432241
/// <returns>The result value.</returns>
22442242
[<CompiledName("Exit")>]
22452243
valexit:exitcode:int->'T when default 'T:obj
2246-
#endif
22472244

22482245
/// <summary>Equivalent to <c>System.Double.PositiveInfinity</c></summary>
22492246
[<CompiledName("Infinity")>]

‎src/utils/reshapedreflection.fs‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ module internal ReflectionAdapters =
4949
letisInstanceFlag f= hasFlag BindingFlags.Instance f
5050
letisNonPublicFlag f= hasFlag BindingFlags.NonPublic f
5151

52-
#if FX_NO_EXIT
53-
letexit(_n:int)= failwith"System.Environment.Exit does not exist!"
54-
#endif
55-
5652
#if FX_NO_TYPECODE
5753
[<System.Flags>]
5854
typeTypeCode=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp