From c4e44b568a172cdb6486e5a5b8b4a7c59d4d2382 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 5 Jan 2015 08:58:00 +0100 Subject: Remove the unused native argument from spawn_named_with_send_on_failure. --- components/util/task.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'components/util/task.rs') diff --git a/components/util/task.rs b/components/util/task.rs index 5907841e434..2962880aee0 100644 --- a/components/util/task.rs +++ b/components/util/task.rs @@ -25,8 +25,7 @@ pub fn spawn_named_with_send_on_failure(name: &'static str, state: task_state::TaskState, f: proc(): Send, msg: T, - dest: Sender, - _native: bool) { + dest: Sender) { let future_result = TaskBuilder::new().named(name).try_future(proc() { task_state::initialize(state); rtinstrument::instrument(f); -- cgit v1.2.3 From e6b2715186b456b2d64fce20b95f2fa720d20300 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 5 Jan 2015 09:20:40 +0100 Subject: Remove spawn_named_native. All threads are native now, so this was just an alias for spawn_named. --- components/util/task.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'components/util/task.rs') diff --git a/components/util/task.rs b/components/util/task.rs index 2962880aee0..5de066d5823 100644 --- a/components/util/task.rs +++ b/components/util/task.rs @@ -16,10 +16,6 @@ pub fn spawn_named>(name: S, f: proc():Send) { }); } -pub fn spawn_named_native>(name: S, f: proc():Send) { - spawn_named(name, f) -} - /// Arrange to send a particular message to a channel if the task fails. pub fn spawn_named_with_send_on_failure(name: &'static str, state: task_state::TaskState, -- cgit v1.2.3