Remove the data field from WorkQueue.

It is only used in the run method.
This commit is contained in:
Ms2ger 2015-06-28 22:17:55 +02:00
parent c214c03375
commit 41da4fceee
3 changed files with 5 additions and 15 deletions

View file

@ -300,8 +300,7 @@ impl LayoutTask {
opts::get().initial_window_size.as_f32() * ScaleFactor::new(1.0));
let parallel_traversal = if opts::get().layout_threads != 1 {
Some(WorkQueue::new("LayoutWorker", task_state::LAYOUT,
opts::get().layout_threads,
SharedLayoutContextWrapper(ptr::null())))
opts::get().layout_threads))
} else {
None
};