Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 2, 2025
1 parent 9fa294f commit 77c9fd8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/epaint/src/text/fonts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,6 @@ impl GalleyCache {
}

fn layout_multiline(&mut self, fonts: &mut FontsImpl, job: LayoutJob) -> Galley {
let pixels_per_point = fonts.pixels_per_point;
let round_to_pixel =
move |point: f32| (point * pixels_per_point).round() / pixels_per_point;

let mut current_section = 0;
let mut current = 0;
let mut left_max_rows = job.wrap.max_rows;
Expand Down Expand Up @@ -868,9 +864,7 @@ impl GalleyCache {
current = end;
}

let pixels_per_point = fonts.pixels_per_point;

concat_galleys(job, &galleys, pixels_per_point)
concat_galleys(job, &galleys, fonts.pixels_per_point)
}

fn layout_component_line(&mut self, fonts: &mut FontsImpl, job: LayoutJob) -> Arc<Galley> {
Expand Down

0 comments on commit 77c9fd8

Please sign in to comment.