Remove the unused native argument from spawn_named_with_send_on_failure.

This commit is contained in:
Ms2ger 2015-01-05 08:58:00 +01:00
parent 76b0e2d3c7
commit c4e44b568a
4 changed files with 4 additions and 5 deletions

View file

@ -224,7 +224,7 @@ impl<C> PaintTask<C> where C: PaintListener + Send {
debug!("paint_task: shutdown_chan send");
shutdown_chan.send(());
}, ConstellationMsg::Failure(failure_msg), c, true);
}, ConstellationMsg::Failure(failure_msg), c);
}
fn start(&mut self) {

View file

@ -202,7 +202,7 @@ impl LayoutTaskFactory for LayoutTask {
layout.start();
}
shutdown_chan.send(());
}, ConstellationMsg::Failure(failure_msg), con_chan, false);
}, ConstellationMsg::Failure(failure_msg), con_chan);
}
}

View file

@ -314,7 +314,7 @@ impl ScriptTaskFactory for ScriptTask {
// This must always be the very last operation performed before the task completes
failsafe.neuter();
}, ConstellationMsg::Failure(failure_msg), const_chan, false);
}, ConstellationMsg::Failure(failure_msg), const_chan);
}
}

View file

@ -25,8 +25,7 @@ pub fn spawn_named_with_send_on_failure<T: Send>(name: &'static str,
state: task_state::TaskState,
f: proc(): Send,
msg: T,
dest: Sender<T>,
_native: bool) {
dest: Sender<T>) {
let future_result = TaskBuilder::new().named(name).try_future(proc() {
task_state::initialize(state);
rtinstrument::instrument(f);