diff --git a/egui/src/widgets/plot/transform.rs b/egui/src/widgets/plot/transform.rs index 051ed988c28..65544b768ff 100644 --- a/egui/src/widgets/plot/transform.rs +++ b/egui/src/widgets/plot/transform.rs @@ -139,13 +139,6 @@ impl PlotBounds { self.expand_y(margin_fraction.y as f64 * height); } - pub(crate) fn add_relative_margin(&mut self, margin_fraction: Vec2) { - let width = self.width().max(0.0); - let height = self.height().max(0.0); - self.expand_x(margin_fraction.x as f64 * width); - self.expand_y(margin_fraction.y as f64 * height); - } - pub(crate) fn range_x(&self) -> RangeInclusive { self.min[0]..=self.max[0] }