Remove never used Task::Execute parameter

This commit is contained in:
Marek Safar committed 2011-10-29 13:35:01 +01:00
1 parent 69a0dc6e61
commit 0a66e607fc
3 files changed
+9 -4

No files matched your search

@@ -433,10 +433,15 @@ namespace System.Threading.Tasks
HandleGenericException (aggregate);
return true;
}
/*
internal void Execute (Action<Task> childAdder)
{
childWorkAdder = childAdder;
Execute ();
}
*/
internal void Execute ()
{
ThreadStart ();
}
@@ -576,7 +581,7 @@ namespace System.Threading.Tasks
if (!IsCompleted) {
// If the task is ready to be run and we were supposed to wait on it indefinitely, just run it
if (Status == TaskStatus.WaitingToRun && millisecondsTimeout == -1 && scheduler != null)
Execute (null);
Execute ();
if (!IsCompleted) {
var evt = new ManualResetEventSlim ();
@@ -99,7 +99,7 @@ namespace System.Threading.Tasks
return false;
if (task.Status == TaskStatus.WaitingToRun) {
task.Execute (null);
task.Execute ();
return true;
}
@@ -40,7 +40,7 @@ namespace System.Threading.Tasks
static void TaskExecuterCallback (object obj)
{
Task task = (Task)obj;
task.Execute (null);
task.Execute ();
}
protected override System.Collections.Generic.IEnumerable<Task> GetScheduledTasks ()