From 7643bd61fda00f9fad5cafaf1a59a1ba9eb84360 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 5 Oct 2023 10:59:50 +0200 Subject: [PATCH] Checkpoint --- crates/gpui3/src/scene.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/crates/gpui3/src/scene.rs b/crates/gpui3/src/scene.rs index 3426eefc9e..742317da42 100644 --- a/crates/gpui3/src/scene.rs +++ b/crates/gpui3/src/scene.rs @@ -204,22 +204,6 @@ pub struct Quad { pub border_widths: Edges, } -impl Quad { - pub fn vertices(&self) -> impl Iterator> { - let x1 = self.bounds.origin.x; - let y1 = self.bounds.origin.y; - let x2 = x1 + self.bounds.size.width; - let y2 = y1 + self.bounds.size.height; - [ - Point::new(x1, y1), - Point::new(x2, y1), - Point::new(x2, y2), - Point::new(x1, y2), - ] - .into_iter() - } -} - impl Ord for Quad { fn cmp(&self, other: &Self) -> std::cmp::Ordering { self.order.cmp(&other.order)