From 624a4ada7981eb05c0b50cafa7e9545ad8347cb5 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 8 Jan 2023 20:07:11 +0100 Subject: Introduce `RelativeOffset` type in `scrollable` --- core/src/point.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'core/src/point.rs') diff --git a/core/src/point.rs b/core/src/point.rs index d351befd..9bf7726b 100644 --- a/core/src/point.rs +++ b/core/src/point.rs @@ -75,11 +75,3 @@ impl std::ops::Sub for Point { Vector::new(self.x - point.x, self.y - point.y) } } - -impl std::ops::Add for Point { - type Output = Point; - - fn add(self, point: Point) -> Point { - Point::new(self.x + point.x, self.y + point.y) - } -} -- cgit