Skip to content

Commit 31f5caf

Browse files
jakobbotschVSadov
authored andcommitted
Remove commented code
1 parent a81b3b8 commit 31f5caf

File tree

1 file changed

+0
-91
lines changed

1 file changed

+0
-91
lines changed

src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.CoreCLR.cs

Lines changed: 0 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -735,96 +735,5 @@ internal static void CompletedTask(Task task)
735735
{
736736
TaskAwaiter.ValidateEnd(task);
737737
}
738-
739-
//private class RuntimeAsyncContinuation : TaskContinuation, IThreadPoolWorkItem
740-
//{
741-
// private readonly Action _act;
742-
// public RuntimeAsyncContinuation(Action act)
743-
// {
744-
// _act = act;
745-
// }
746-
747-
// public void Execute() => _act();
748-
749-
// internal override Delegate[]? GetDelegateContinuationsForDebugger() => [_act];
750-
// internal override void Run(Task completedTask, bool canInlineContinuationTask)
751-
// {
752-
// if (canInlineContinuationTask)
753-
// {
754-
// ref Task? currentTask = ref Task.t_currentTask;
755-
// Task? prevCurrentTask = currentTask;
756-
// try
757-
// {
758-
// if (prevCurrentTask != null)
759-
// currentTask = null;
760-
761-
// // This should call into RuntimeAsyncTask.MoveNext.
762-
// _act();
763-
// }
764-
// finally
765-
// {
766-
// if (prevCurrentTask != null)
767-
// currentTask = prevCurrentTask;
768-
// }
769-
// }
770-
// else
771-
// {
772-
// // No stack to run RuntimeAsyncTask.MoveNext, which might
773-
// // execute arbitrary continuation code.
774-
// ThreadPool.UnsafeQueueUserWorkItemInternal(this, preferLocal: true);
775-
// }
776-
// }
777-
//}
778-
779-
//internal struct TransparentTaskAwaiter<T> : ICriticalNotifyCompletion
780-
//{
781-
// private readonly Task<T> _task;
782-
783-
// internal TransparentTaskAwaiter(Task<T> task)
784-
// => _task = task;
785-
786-
// public bool IsCompleted => _task.IsCompleted;
787-
788-
// public T GetResult()
789-
// {
790-
// TaskAwaiter.ValidateEnd(_task);
791-
// return _task.ResultOnSuccess;
792-
// }
793-
794-
// public void OnCompleted(Action continuation)
795-
// {
796-
// throw new NotSupportedException();
797-
// }
798-
799-
// public void UnsafeOnCompleted(Action continuation)
800-
// {
801-
// throw new NotSupportedException();
802-
// }
803-
//}
804-
805-
//internal struct TransparentTaskAwaiter : ICriticalNotifyCompletion
806-
//{
807-
// private readonly Task _task;
808-
809-
// internal TransparentTaskAwaiter(Task task)
810-
// => _task = task;
811-
812-
// public bool IsCompleted => _task.IsCompleted;
813-
814-
// public void GetResult()
815-
// {
816-
// TaskAwaiter.ValidateEnd(_task);
817-
// }
818-
819-
// public void OnCompleted(Action continuation)
820-
// {
821-
// throw new NotSupportedException();
822-
// }
823-
824-
// public void UnsafeOnCompleted(Action continuation)
825-
// {
826-
// throw new NotSupportedException();
827-
// }
828-
//}
829738
}
830739
}

0 commit comments

Comments
 (0)