Remove unnecessary explicit static cctors
authorStephen Toub <stoub@microsoft.com>
Wed, 1 Feb 2017 15:35:12 +0000 (10:35 -0500)
committerStephen Toub <stoub@microsoft.com>
Wed, 1 Feb 2017 15:35:12 +0000 (10:35 -0500)
Let these types be marked beforefieldinit

Commit migrated from https://github.com/dotnet/coreclr/commit/6f4432b69f4aff9c47e693b1b9334897b448ab32

src/coreclr/src/mscorlib/src/System/Threading/ThreadPool.cs

index 4809257..fb47d82 100644 (file)
@@ -56,10 +56,6 @@ namespace System.Threading
         public static bool enableWorkerTracking;
 
         public static readonly ThreadPoolWorkQueue workQueue = new ThreadPoolWorkQueue();
-
-        static ThreadPoolGlobals()
-        {
-        }
     }
 
     internal sealed class ThreadPoolWorkQueue
@@ -969,8 +965,6 @@ namespace System.Threading
 
     internal sealed class QueueUserWorkItemCallback : IThreadPoolWorkItem
     {
-        static QueueUserWorkItemCallback() {}
-
         private WaitCallback callback;
         private ExecutionContext context;
         private Object state;
@@ -1041,8 +1035,6 @@ namespace System.Threading
 
     internal sealed class QueueUserWorkItemCallbackDefaultContext : IThreadPoolWorkItem
     {
-        static QueueUserWorkItemCallbackDefaultContext() { }
-
         private WaitCallback callback;
         private Object state;
 
@@ -1102,8 +1094,6 @@ namespace System.Threading
 
     internal class _ThreadPoolWaitOrTimerCallback
     {
-        static _ThreadPoolWaitOrTimerCallback() {}
-
         WaitOrTimerCallback _waitOrTimerCallback;
         ExecutionContext _executionContext;
         Object _state;