mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
removed unused macros from main/macros.rs
This commit is contained in:
parent
c9c6cb3bf5
commit
6f7107ee9b
5 changed files with 35 additions and 96 deletions
|
@ -18,15 +18,6 @@ use servo_net::resource_task::ResourceTask;
|
|||
use servo_util::time::ProfilerChan;
|
||||
use std::comm;
|
||||
|
||||
macro_rules! special_stream(
|
||||
($Chan:ident) => (
|
||||
{
|
||||
let (port, chan) = comm::stream::();
|
||||
(port, $Chan::new(chan))
|
||||
}
|
||||
);
|
||||
)
|
||||
|
||||
/// A uniquely-identifiable pipeline of stript task, layout task, and render task.
|
||||
pub struct Pipeline {
|
||||
id: uint,
|
||||
|
@ -64,16 +55,16 @@ impl Pipeline {
|
|||
render_chan.clone(),
|
||||
image_cache_task.clone(),
|
||||
copy opts,
|
||||
profiler_chan.clone());
|
||||
profiler_chan);
|
||||
|
||||
ScriptTask::create(id,
|
||||
compositor_chan.clone(),
|
||||
compositor_chan,
|
||||
layout_chan.clone(),
|
||||
script_port,
|
||||
script_chan.clone(),
|
||||
constellation_chan,
|
||||
resource_task.clone(),
|
||||
image_cache_task.clone());
|
||||
resource_task,
|
||||
image_cache_task);
|
||||
|
||||
Pipeline::new(id,
|
||||
script_chan,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue