Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
enomado committed May 13, 2022
1 parent 00c5058 commit 5048d2d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions egui/src/widgets/plot/transform.rs
Expand Up @@ -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<f64> {
self.min[0]..=self.max[0]
}
Expand Down

0 comments on commit 5048d2d

Please sign in to comment.