From c005552a681a9e1422e97c3cebeff298f513dc0f Mon Sep 17 00:00:00 2001 From: Tomasz Gucio <72562119+tgucio@users.noreply.github.com> Date: Mon, 8 Nov 2021 18:23:04 +0100 Subject: [PATCH] Remove comment on caching line metrics (#93128) --- packages/flutter/lib/src/painting/text_painter.dart | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/flutter/lib/src/painting/text_painter.dart b/packages/flutter/lib/src/painting/text_painter.dart index 13beb12055..f080abc45b 100644 --- a/packages/flutter/lib/src/painting/text_painter.dart +++ b/packages/flutter/lib/src/painting/text_painter.dart @@ -988,10 +988,6 @@ class TextPainter { /// widgets to a particular line. /// /// Valid only after [layout] has been called. - /// - /// This can potentially return a large amount of data, so it is not recommended - /// to repeatedly call this. Instead, cache the results. The cached results - /// should be invalidated upon the next successful [layout]. List computeLineMetrics() { assert(!_debugNeedsLayout); return _lineMetricsCache ??= _paragraph!.computeLineMetrics();