]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - sched.c
sched: Remove register_task().
[paraslash.git] / sched.c
diff --git a/sched.c b/sched.c
index 6b8e09108308336676e48c4d8c9e84eb6e388431..fe57e03eae01a1d4360ae41cdf61f893a9888128 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -208,25 +208,6 @@ void sched_shutdown(struct sched *s)
        }
 }
 
-/**
- * Add a task to the scheduler. Deprecated.
- *
- * \param t The task to add.
- * \param s The scheduler instance to add the task to.
- *
- * \sa task::pre_select, task::post_select
- */
-void register_task(struct sched *s, struct task *t)
-{
-       PARA_INFO_LOG("registering %s (%p)\n", t->status, t);
-       assert(t->post_select);
-       t->notification = 0;
-       t->owned_by_sched = false;
-       if (!s->task_list.next)
-               INIT_LIST_HEAD(&s->task_list);
-       list_add_tail(&t->node, &s->task_list);
-}
-
 /**
  * Add a task to the scheduler task list.
  *