From 1096c3167a06a1174454d92404d91250e963dcb7 Mon Sep 17 00:00:00 2001 From: iris-ai <4+iris-ai@noreply.localhost> Date: Sun, 20 Sep 2026 01:30:35 -0400 Subject: [PATCH] Drop the last thing nothing reads `Painter::text_data` had no caller. It was left in the previous round because it is the only way a widget inside `draw` can reach `TextData`, and the app's pending integration might have wanted it; nothing in iris is kept for the app's sake, since the app is to be largely rewritten against this API rather than ported call by call (Bryan, 2026-09-20). --- core/src/ui/painter.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/ui/painter.rs b/core/src/ui/painter.rs index 44153c2..843d51a 100644 --- a/core/src/ui/painter.rs +++ b/core/src/ui/painter.rs @@ -2,8 +2,8 @@ use crate::layout_diagnostics::{self as diag, Counter}; use crate::{ Axis, Declared, Holds, LayoutHolds, LayoutLen, Len, PlaceDesc, Px, PxVec2, RegionAlign, Rel, - RenderedText, RetainedPrimitive, Size, StrongWidget, TextAttrs, TextBuffer, TextData, - TextureHandle, UiRegion, UiRenderState, UiRsc, UiVec2, Weight, WidgetId, Widgets, + RenderedText, RetainedPrimitive, Size, StrongWidget, TextAttrs, TextBuffer, TextureHandle, + UiRegion, UiRenderState, UiRsc, UiVec2, Weight, WidgetId, Widgets, render::{ GlyphPrimitive, Mask, MaskIdx, MoveIdx, Primitive, PrimitiveInst, PrimitiveKind, TexturePrimitive, @@ -497,10 +497,6 @@ impl<'a> Painter<'a> { self.own[axis].window = holds; } - pub fn text_data(&mut self) -> &mut TextData { - &mut self.rsc.ui_mut().text - } - pub fn child_layer(&mut self) { self.layer = self.state.layers.child(self.layer); }