]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
sched: Remove register_task().
authorAndre Noll <maan@systemlinux.org>
Thu, 2 Jan 2014 01:01:58 +0000 (01:01 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 25 May 2014 13:39:00 +0000 (15:39 +0200)
Now that all users of this function have been converted to
task_register(), the old function can go away.

interactive.c
sched.c
sched.h

index 5d3303d77ae2e10e86e4d04dbb9df8b191715d8c..6a1db53620cfa60f1061cc2bcf185aee2659373b 100644 (file)
@@ -439,7 +439,6 @@ static int dispatch_key(__a_unused int count, int key)
  * The caller must allocate and initialize the structure \a ici points to.
  *
  * \return Standard.
- * \sa \ref register_task().
  */
 int i9e_open(struct i9e_client_info *ici, struct sched *s)
 {
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.
  *
diff --git a/sched.h b/sched.h
index fd714b618b681720b4ee187401f57d39fbd001f7..0b7df7e8fd72f9d90f531bcec37ddb4922f72fb7 100644 (file)
--- a/sched.h
+++ b/sched.h
@@ -99,7 +99,6 @@ extern struct timeval *now;
 
 struct task *task_register(struct task_info *info, struct sched *s);
 void *task_context(struct task *t);
-void register_task(struct sched *s, struct task *t);
 int schedule(struct sched *s);
 void sched_shutdown(struct sched *s);
 char *get_task_list(struct sched *s);