From 7ce185d5a3fcfad8c8f746f95f3d50a8829faac4 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sat, 22 Nov 2025 16:55:53 +0800 Subject: Clean codes. Remove Measure1. --- src/ui/render/TextRenderObject.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/ui/render/TextRenderObject.cpp') diff --git a/src/ui/render/TextRenderObject.cpp b/src/ui/render/TextRenderObject.cpp index 3af08e49..b9ab8dd9 100644 --- a/src/ui/render/TextRenderObject.cpp +++ b/src/ui/render/TextRenderObject.cpp @@ -226,17 +226,6 @@ Size TextRenderObject::OnMeasureContent(const MeasureRequirement& requirement, return result; } -Size TextRenderObject::OnMeasureContent1(const BoxConstraint& constraint) { - text_layout_->SetMaxWidth(constraint.max.width); - text_layout_->SetMaxHeight(std::numeric_limits::max()); - - const Size text_size( - text_layout_->GetTextBounds(is_measure_including_trailing_space_) - .GetRightBottom()); - - return constraint.Coerce(text_size); -} - void TextRenderObject::OnLayoutContent(const Rect& content_rect) { CRU_UNUSED(content_rect) } -- cgit v1.2.3