aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/canvas_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/canvas/canvas_data.rs')
-rw-r--r--components/canvas/canvas_data.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/components/canvas/canvas_data.rs b/components/canvas/canvas_data.rs
index bd825af38aa..b1768fe8744 100644
--- a/components/canvas/canvas_data.rs
+++ b/components/canvas/canvas_data.rs
@@ -85,21 +85,6 @@ impl<'a> CanvasData<'a> {
}
}
- pub fn draw_image_self(
- &self,
- image_size: Size2D<f64>,
- dest_rect: Rect<f64>,
- source_rect: Rect<f64>,
- smoothing_enabled: bool
- ) {
- // Reads pixels from source image
- // In this case source and target are the same canvas
- let image_data = self.read_pixels(source_rect.to_i32(), image_size);
-
- // The dimensions of image_data are source_rect.size
- self.draw_image(image_data, source_rect.size, dest_rect, source_rect, smoothing_enabled);
- }
-
pub fn save_context_state(&mut self) {
self.saved_states.push(self.state.clone());
}