summaryrefslogtreecommitdiffstats
path: root/tiny_skia
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-02 17:15:26 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-02 17:28:29 +0200
commit568ac66486937a294f2a79cefea277e4eb46b81e (patch)
tree7008a5bcef76b1497f10a10de15cb0ef8ff24a55 /tiny_skia
parentefc55b655bfce98fc32e698cf3c2007e27be941a (diff)
downloadiced-568ac66486937a294f2a79cefea277e4eb46b81e.tar.gz
iced-568ac66486937a294f2a79cefea277e4eb46b81e.tar.bz2
iced-568ac66486937a294f2a79cefea277e4eb46b81e.zip
Remove commented code in `tiny_skia::layer`
Diffstat (limited to 'tiny_skia')
-rw-r--r--tiny_skia/src/layer.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/tiny_skia/src/layer.rs b/tiny_skia/src/layer.rs
index c8a31ba3..c907c93c 100644
--- a/tiny_skia/src/layer.rs
+++ b/tiny_skia/src/layer.rs
@@ -260,22 +260,6 @@ impl Layer {
Image::eq,
);
- // let center = bounds.center();
- // let rotated_size = RotationLayout::Change
- // .apply_to_size(bounds.size(), *rotation);
- //
- // let scaled_size = Size::new(
- // rotated_size.width * scale.width,
- // rotated_size.height * scale.height,
- // );
- //
- // let top_left = Point::new(
- // center.x - scaled_size.width / 2.0,
- // center.y - scaled_size.height / 2.0,
- // );
- //
- // Rectangle::new(top_left, scaled_size).expand(1.0)
-
damage.extend(text);
damage.extend(primitives);
damage.extend(images);