From 77c9fd85bd3b917bdf0ce8076c1b992e8ace2200 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 2 Jan 2025 02:29:19 +0100 Subject: [PATCH] cleanup --- crates/epaint/src/text/fonts.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/epaint/src/text/fonts.rs b/crates/epaint/src/text/fonts.rs index e69c402ffc4..2c9d840d328 100644 --- a/crates/epaint/src/text/fonts.rs +++ b/crates/epaint/src/text/fonts.rs @@ -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; @@ -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 {