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

Commit2b656c9

Browse files
committed
FX_NO_CREATE_DELEGATE --- dead code removal
1 parent32d6492 commit2b656c9

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,6 @@ namespace Microsoft.FSharp.Control
16911691
letbeginAction=fun(a1,callback,state)-> AsBeginEndHelpers.beginAction((computation a1), callback, state)
16921692
beginAction, AsBeginEndHelpers.endAction<'T>, AsBeginEndHelpers.cancelAction<'T>
16931693

1694-
#if!FX_NO_CREATE_DELEGATE
16951694
static memberAwaitEvent(event:IEvent<'Delegate,'T>,?cancelAction):Async<'T>=
16961695
async{let!token= getCancellationToken()
16971696
letresultCell=new ResultCell<_>()
@@ -1736,7 +1735,6 @@ namespace Microsoft.FSharp.Control
17361735

17371736
// Return the async computation that allows us to await the result
17381737
return! Async.AwaitAndReifyResult(resultCell)}
1739-
#endif
17401738

17411739
typeAsyncwith
17421740
static memberIgnore(p:Async<'T>)= bindA p(fun _-> doneA)

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ namespace Microsoft.FSharp.Control
217217
/// <returns>An asynchronous computation that provides the callback with the current continuations.</returns>
218218
static memberFromContinuations:callback:(('T-> unit)*(exn-> unit)*(OperationCanceledException-> unit)-> unit)->Async<'T>
219219

220-
#if!FX_NO_CREATE_DELEGATE
221220
/// <summary>Creates an asynchronous computation that waits for a single invocation of a CLI
222221
/// event by adding a handler to the event. Once the computation completes or is
223222
/// cancelled, the handler is removed from the event.</summary>
@@ -233,7 +232,6 @@ namespace Microsoft.FSharp.Control
233232
/// cancellation is issued.</param>
234233
/// <returns>An asynchronous computation that waits for the event to be invoked.</returns>
235234
static memberAwaitEvent:event:IEvent<'Del,'T>* ?cancelAction:(unit-> unit)-> Async<'T> when 'Del: delegate<'T,unit> and 'Del:> System.Delegate
236-
#endif
237235

238236
///<summary>Creates an asynchronous computation that will wait on the given WaitHandle.</summary>
239237
///

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp