Skip to content

Commit

Permalink
Remove RenderListener::set_layer_clip_rect
Browse files Browse the repository at this point in the history
It is currently unused.
  • Loading branch information
bjwbell authored and mrobinson committed Aug 28, 2014
1 parent 31cc50f commit 69a2dbc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
11 changes: 0 additions & 11 deletions src/components/compositing/compositor_task.rs
Expand Up @@ -126,17 +126,6 @@ impl RenderListener for CompositorChan {
self.chan.send(RenderMsgDiscarded);
}

fn set_layer_clip_rect(&self,
pipeline_id: PipelineId,
layer_id: LayerId,
new_rect: Rect<uint>) {
let new_rect = Rect(Point2D(new_rect.origin.x as f32,
new_rect.origin.y as f32),
Size2D(new_rect.size.width as f32,
new_rect.size.height as f32));
self.chan.send(SetLayerClipRect(pipeline_id, layer_id, new_rect))
}

fn set_render_state(&self, render_state: RenderState) {
self.chan.send(ChangeRenderState(render_state))
}
Expand Down
5 changes: 0 additions & 5 deletions src/components/msg/compositor_msg.rs
Expand Up @@ -94,11 +94,6 @@ pub trait RenderListener {
metadata: Vec<LayerMetadata>,
epoch: Epoch);

fn set_layer_clip_rect(&self,
pipeline_id: PipelineId,
layer_id: LayerId,
new_rect: Rect<uint>);

/// Sends new tiles for the given layer to the compositor.
fn paint(&self,
pipeline_id: PipelineId,
Expand Down

0 comments on commit 69a2dbc

Please sign in to comment.