From 1e37bb489a364cb5e957ef3669b13d7976eeea7f Mon Sep 17 00:00:00 2001 From: Mouad Debbar Date: Fri, 21 Feb 2020 13:18:09 -0800 Subject: [PATCH] [web] Paragraph.longestLine doesn't need to check for `isSingleLine` anymore (flutter/engine#16736) --- .../flutter/lib/web_ui/lib/src/engine/text/paragraph.dart | 6 ------ 1 file changed, 6 deletions(-) diff --git a/engine/src/flutter/lib/web_ui/lib/src/engine/text/paragraph.dart b/engine/src/flutter/lib/web_ui/lib/src/engine/text/paragraph.dart index a9d73ae667e..60e9e7954fc 100644 --- a/engine/src/flutter/lib/web_ui/lib/src/engine/text/paragraph.dart +++ b/engine/src/flutter/lib/web_ui/lib/src/engine/text/paragraph.dart @@ -210,12 +210,6 @@ class EngineParagraph implements ui.Paragraph { return maxWidth; } - // In the single-line case, the longest line is equal to the maximum - // intrinsic width of the paragraph. - if (_measurementResult.isSingleLine) { - return _measurementResult.maxIntrinsicWidth; - } - // If we don't have any line metrics information, there's no way to know the // longest line in a multi-line paragraph. return 0.0;