Skip to content

Commit 5ed1a30

Browse files
authored
Remove obsolete #if directives (#1915)
1 parent 677aeb2 commit 5ed1a30

File tree

59 files changed

+30
-3023
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+30
-3023
lines changed

Rx.NET/Source/facades/GlobalAssemblyVersion.cs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT License.
33
// See the LICENSE file in the project root for more information.
44

55

66
using System.Reflection;
77

88

9-
#if NETSTANDARD1_0 || WP8
10-
[assembly: AssemblyVersion("3.0.0.0")]
11-
#elif NETSTANDARD1_1 || WINDOWS8 || NET45 || NETCORE45
12-
[assembly: AssemblyVersion("3.0.1000.0")]
13-
#elif NETSTANDARD1_2 || WINDOWS81 || NET451 || NETCORE451 || WPA81
14-
[assembly: AssemblyVersion("3.0.2000.0")]
15-
#elif NETSTANDARD1_3 || NET46
16-
[assembly: AssemblyVersion("3.0.3000.0")]
17-
#elif NETSTANDARD1_4 || UAP10_0 || WINDOWS_UWP || NETCORE50 || NET461
9+
#if WINDOWS_UWP
1810
[assembly: AssemblyVersion("3.0.4000.0")]
19-
#elif NETSTANDARD1_5 || NET462
20-
[assembly: AssemblyVersion("3.0.5000.0")]
21-
#elif NETSTANDARD1_6 || NETCOREAPP1_0 || NET463 || NET472 || NETSTANDARD2_0
11+
#elif NET472 || NETSTANDARD2_0
2212
[assembly: AssemblyVersion("3.0.6000.0")]
2313
#else // this is here to prevent the build system from complaining. It should never be hit
2414
[assembly: AssemblyVersion("invalid")]

Rx.NET/Source/src/Microsoft.Reactive.Testing/Recorded.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ namespace Microsoft.Reactive.Testing
1414
/// </summary>
1515
/// <typeparam name="T">Type of the value.</typeparam>
1616
[DebuggerDisplay("{Value}@{Time}")]
17-
#if !NO_SERIALIZABLE
1817
[Serializable]
19-
#endif
2018
public readonly struct Recorded<T> : IEquatable<Recorded<T>>
2119
{
2220
// NB: Keep these fields for compat with serialized state.

Rx.NET/Source/src/Microsoft.Reactive.Testing/Subscription.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ namespace Microsoft.Reactive.Testing
1212
/// Records information about subscriptions to and unsubscriptions from observable sequences.
1313
/// </summary>
1414
[DebuggerDisplay("({Subscribe}, {Unsubscribe})")]
15-
#if !NO_SERIALIZABLE
1615
[Serializable]
17-
#endif
1816
public readonly struct Subscription : IEquatable<Subscription>
1917
{
2018
/// <summary>

Rx.NET/Source/src/System.Reactive.Observable.Aliases/ExcludeFromCodeCoverageAttribute.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayerImpl.Windows.cs

Lines changed: 0 additions & 84 deletions
This file was deleted.

Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayerImpl.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT License.
33
// See the LICENSE file in the project root for more information.
44

5-
#if !NO_THREAD
65
using System.Reactive.Disposables;
76
using System.Threading;
87

@@ -251,4 +250,3 @@ private void Loop()
251250
}
252251
}
253252
}
254-
#endif

Rx.NET/Source/src/System.Reactive/Concurrency/EventLoopScheduler.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,13 @@ public EventLoopScheduler()
8686
{
8787
}
8888

89-
#if !NO_THREAD
9089
/// <summary>
9190
/// Creates an object that schedules units of work on a designated thread, using the specified factory to control thread creation options.
9291
/// </summary>
9392
/// <param name="threadFactory">Factory function for thread creation.</param>
9493
/// <exception cref="ArgumentNullException"><paramref name="threadFactory"/> is <c>null</c>.</exception>
9594
public EventLoopScheduler(Func<ThreadStart, Thread> threadFactory)
9695
{
97-
#else
98-
internal EventLoopScheduler(Func<ThreadStart, Thread> threadFactory)
99-
{
100-
#endif
10196
_threadFactory = threadFactory ?? throw new ArgumentNullException(nameof(threadFactory));
10297
_stopwatch = ConcurrencyAbstractionLayer.Current.StartStopwatch();
10398

Rx.NET/Source/src/System.Reactive/Concurrency/NewThreadScheduler.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,13 @@ public NewThreadScheduler()
2929
/// </summary>
3030
public static NewThreadScheduler Default => Instance.Value;
3131

32-
#if !NO_THREAD
3332
/// <summary>
3433
/// Creates an object that schedules each unit of work on a separate thread.
3534
/// </summary>
3635
/// <param name="threadFactory">Factory function for thread creation.</param>
3736
/// <exception cref="ArgumentNullException"><paramref name="threadFactory"/> is <c>null</c>.</exception>
3837
public NewThreadScheduler(Func<ThreadStart, Thread> threadFactory)
3938
{
40-
#else
41-
private NewThreadScheduler(Func<ThreadStart, Thread> threadFactory)
42-
{
43-
#endif
4439
_threadFactory = threadFactory ?? throw new ArgumentNullException(nameof(threadFactory));
4540
}
4641

Rx.NET/Source/src/System.Reactive/Concurrency/Thread.Stub.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

Rx.NET/Source/src/System.Reactive/Concurrency/ThreadPoolScheduler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT License.
33
// See the LICENSE file in the project root for more information.
44

5-
#if !LEGACY_WINRT && !NO_THREAD
5+
#if !LEGACY_WINRT
66
using System.Reactive.Disposables;
77
using System.Threading;
88

0 commit comments

Comments
 (0)