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 c9701de commit 7902052
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions egui/src/widgets/plot/transform.rs
Original file line number Diff line number Diff line change
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 7902052

Please sign in to comment.