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

Commit8bc1182

Browse files
committed
FX_NO_OPERATION_CANCELLED --- dead code removal
1 parent96dd484 commit8bc1182

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

‎src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Control/AsyncModule.fs‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,7 @@ type AsyncModule() =
325325
try
326326
Async.RunSynchronously(go, cancellationToken= cts.Token)
327327
with
328-
#if FX_NO_OPERATION_CANCELLED
329-
_->()
330-
#else
331328
:? System.OperationCanceledException->()
332-
#endif
333329
Assert.AreEqual(1,!flag)
334330

335331
[<Test>]
@@ -548,11 +544,7 @@ type AsyncModule() =
548544
|>fun c-> Async.RunSynchronously(c, cancellationToken= cts.Token)
549545
|> ignore
550546
with
551-
#if FX_NO_OPERATION_CANCELLED
552-
_->()
553-
#else
554547
:? System.OperationCanceledException->()// OK
555-
#endif
556548
for_in1..1000do test()
557549

558550
[<Test>]

‎src/fsharp/FSharp.Core/control.fs‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ namespace Microsoft.FSharp.Control
2828
#endif
2929

3030

31-
32-
#if FX_NO_OPERATION_CANCELLED
33-
typeOperationCanceledException(s: System.String)=
34-
inherit System.Exception(s)
35-
new()=new OperationCanceledException("The operation has been canceled")
36-
#endif
37-
3831
/// We use our own internal implementation of queues to avoid a dependency on System.dll
3932
typeQueue<'T>()=//: IEnumerable<T>, ICollection, IEnumerable
4033

‎src/fsharp/FSharp.Core/control.fsi‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ namespace Microsoft.FSharp.Control
1212
openMicrosoft.FSharp.Control
1313
openMicrosoft.FSharp.Collections
1414

15-
#if FX_NO_OPERATION_CANCELLED
16-
17-
typeOperationCanceledException=
18-
inherit System.Exception
19-
new: System.String-> OperationCanceledException
20-
#endif
21-
2215

2316
/// <summary>A compositional asynchronous computation, which, when run, will eventually produce a value
2417
/// of type T, or else raises an exception.</summary>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp