Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2013-01-08 20:27:19 +0400
committerMarek Safar <marek.safar@gmail.com>2013-01-08 20:27:19 +0400
commit39c48d5e83d03851f569e25a1c2160845e4ffcdc (patch)
treec9e94403607c267c5945901e4b3100b578f9c1d4
parentcd4d381b6822d58cdfa1a57225e9c3d421056b75 (diff)
Remove NET_2_1 default (broken) contextmono-3.0.3
-rw-r--r--mcs/class/corlib/System.Threading/SynchronizationContext.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/mcs/class/corlib/System.Threading/SynchronizationContext.cs b/mcs/class/corlib/System.Threading/SynchronizationContext.cs
index 3bbb7569ff3..5c4cedf15b0 100644
--- a/mcs/class/corlib/System.Threading/SynchronizationContext.cs
+++ b/mcs/class/corlib/System.Threading/SynchronizationContext.cs
@@ -47,15 +47,11 @@ namespace System.Threading
currentContext = context;
}
- public static SynchronizationContext Current
- {
+ public static SynchronizationContext Current {
get {
#if MONODROID
if (currentContext == null)
currentContext = AndroidPlatform.GetDefaultSyncContext ();
-#elif NET_2_1
- if (currentContext == null)
- currentContext = new SynchronizationContext ();
#endif
return currentContext;
}