Skip to content

Commit

Permalink
canvas: Remove unused viewport dimensions
Browse files Browse the repository at this point in the history
Which became unused in #7026.
  • Loading branch information
relrelb committed Aug 8, 2022
1 parent 05bfa37 commit 04c3d76
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions render/canvas/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ pub struct WebCanvasRenderBackend {
color_matrix: Element,
shapes: Vec<ShapeData>,
bitmaps: FnvHashMap<BitmapHandle, BitmapData>,
viewport_width: u32,
viewport_height: u32,
rect: Path2d,
mask_state: MaskState,
next_bitmap_handle: BitmapHandle,
Expand Down Expand Up @@ -283,8 +281,6 @@ impl WebCanvasRenderBackend {
context,
shapes: vec![],
bitmaps: Default::default(),
viewport_width: 0,
viewport_height: 0,
rect,
mask_state: MaskState::DrawContent,
next_bitmap_handle: BitmapHandle(0),
Expand Down Expand Up @@ -347,10 +343,7 @@ impl WebCanvasRenderBackend {
}

impl RenderBackend for WebCanvasRenderBackend {
fn set_viewport_dimensions(&mut self, width: u32, height: u32) {
self.viewport_width = width;
self.viewport_height = height;
}
fn set_viewport_dimensions(&mut self, _width: u32, _height: u32) {}

fn register_shape(
&mut self,
Expand Down

0 comments on commit 04c3d76

Please sign in to comment.