diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index 692bffd3afd3..015fa2f05e70 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -2602,11 +2602,6 @@ impl Overflow { self.paint = self.paint.union(&other.paint); } - pub fn union_rect(&mut self, rect: &Rect) { - self.scroll = self.scroll.union(&rect); - self.paint = self.paint.union(&rect); - } - pub fn translate(&mut self, point: &Point2D) { self.scroll = self.scroll.translate(point); self.paint = self.paint.translate(point);