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

Commit7d4563f

Browse files
committed
FX_NO_DELEGATE_DYNAMIC_METHOD and FX_NO_REFEMIT ---- dead code removal
1 parentd7caf7f commit7d4563f

File tree

5 files changed

+3
-14
lines changed

5 files changed

+3
-14
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ open System.Linq
144144
openSystem.Collections.Generic
145145
openSystem.Linq.Expressions
146146
openSystem.Reflection
147-
#if!FX_NO_REFLECTION_EMIT
148-
openSystem.Reflection.Emit
149-
#endif
150147
openMicrosoft.FSharp
151148
openMicrosoft.FSharp.Collections
152149
openMicrosoft.FSharp.Core

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,6 @@ open System.Collections
234234
openSystem.Collections.Generic
235235
openSystem.Linq.Expressions
236236
openSystem.Reflection
237-
#if!FX_NO_REFLECTION_EMIT
238-
openSystem.Reflection.Emit
239-
#endif
240237
openMicrosoft.FSharp
241238
openMicrosoft.FSharp.Core
242239
openMicrosoft.FSharp.Core.Operators

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ namespace Microsoft.FSharp.Control
1515
openReflectionAdapters
1616
#endif
1717

18-
#if!FX_NO_DELEGATE_DYNAMIC_METHOD
19-
2018
[<CompiledName("FSharpDelegateEvent`1")>]
2119
typeDelegateEvent<'Delegatewhen'Delegate:>System.Delegate>()=
2220
let mutablemulticast:System.Delegate=null
@@ -122,7 +120,6 @@ namespace Microsoft.FSharp.Control
122120
{new System.IDisposablewith
123121
memberx.Dispose()=(e:?> IDelegateEvent<'Delegate>).RemoveHandler(h)}}
124122

125-
#endif
126123

127124
[<CompiledName("FSharpEvent`1")>]
128125
typeEvent<'T>=

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.FSharp.Control
88
openMicrosoft.FSharp.Control
99
openMicrosoft.FSharp.Collections
1010

11-
#if!FX_NO_DELEGATE_DYNAMIC_METHOD// not available on CompactFramework 2.0
11+
1212
/// <summary>Event implementations for an arbitrary type of delegate.</summary>
1313
[<CompiledName("FSharpDelegateEvent`1")>]
1414
typeDelegateEvent<'Delegatewhen'Delegate:>System.Delegate>=
@@ -20,7 +20,7 @@ namespace Microsoft.FSharp.Control
2020
memberTrigger:args:obj[]->unit
2121
/// <summary>Publishes the event as a first class event value.</summary>
2222
memberPublish:IDelegateEvent<'Delegate>
23-
23+
2424

2525
/// <summary>Event implementations for a delegate types following the standard .NET Framework convention of a first 'sender' argument.</summary>
2626
[<CompiledName("FSharpEvent`2")>]
@@ -35,7 +35,7 @@ namespace Microsoft.FSharp.Control
3535
///<summary>Publishes the event as a first class event value.</summary>
3636
member Publish: IEvent<'Delegate,'Args>
3737

38-
#endif
38+
3939
///<summary>Event implementations for the IEvent&lt;_&gt; type.</summary>
4040
[<CompiledName("FSharpEvent`1")>]
4141
type Event<'T>=

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,9 +1759,7 @@ module Patterns =
17591759
letqdataResources=
17601760
// dynamic assemblies don't support the GetManifestResourceNames
17611761
match assemwith
1762-
#if!FX_NO_REFLECTION_EMIT
17631762
| awhen a.FullName="System.Reflection.Emit.AssemblyBuilder"->[]
1764-
#endif
17651763
|null|_->
17661764
letresources=
17671765
// This raises NotSupportedException for dynamic assemblies

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp