Merge pull request #1504 from madrang/SafeHandle.SetInvalidRelease
[mono.git] / mcs / class / System / System.Net / SimpleAsyncResult.cs
index 4d143153ddf9b2c6b336e90000dd2fcda8f3fbf5..b18d2adf34a12d089e466a006cb031a7c5ccf7e4 100644 (file)
@@ -159,18 +159,10 @@ namespace System.Net
                {
                        if (!callbackDone && cb != null) {
                                callbackDone = true;
-//                             if (true || synch)
-                                       cb (this);
-//                             else
-//                                     ThreadPool.QueueUserWorkItem (CB, null);
+                               cb (this);
                        }
                }
 
-               void CB (object unused)
-               {
-                       cb (this);
-               }
-
                internal void WaitUntilComplete ()
                {
                        if (IsCompleted)