From aa6e038da60c6c4bc7dd6e838ab7c9f6949df06e Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Thu, 2 Dec 2021 12:49:18 -0800 Subject: [PATCH] Remove todos (flutter/engine#30002) --- engine/src/flutter/lib/ui/painting.dart | 9 --------- engine/src/flutter/lib/ui/text.dart | 12 ------------ 2 files changed, 21 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index ca227397f1..a1b9103824 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -26,15 +26,6 @@ part of dart.ui; /// platform API supports decoding the image Flutter will be able to render it. /// {@endtemplate} -// TODO(gspencergoog): remove this template block once the framework templates -// are renamed to not reference it. -/// {@template flutter.dart:ui.imageFormats} -/// JPEG, PNG, GIF, Animated GIF, WebP, Animated WebP, BMP, and WBMP. Additional -/// formats may be supported by the underlying platform. Flutter will -/// attempt to call platform API to decode unrecognized formats, and if the -/// platform API supports decoding the image Flutter will be able to render it. -/// {@endtemplate} - bool _rectIsValid(Rect rect) { assert(rect != null, 'Rect argument was null.'); assert(!rect.hasNaN, 'Rect argument contained a NaN value.'); diff --git a/engine/src/flutter/lib/ui/text.dart b/engine/src/flutter/lib/ui/text.dart index f2cf1fd582..a5884beca2 100644 --- a/engine/src/flutter/lib/ui/text.dart +++ b/engine/src/flutter/lib/ui/text.dart @@ -3579,16 +3579,4 @@ FutureOr _sendFontChangeMessage() async { } } -// TODO(gspencergoog): remove this template block once the framework templates -// are renamed to not reference it. -/// {@template flutter.dart:ui.textHeightBehavior} -/// Defines how the paragraph will apply [TextStyle.height] to the ascent of the -/// first line and descent of the last line. -/// -/// Each boolean value represents whether the [TextStyle.height] modifier will -/// be applied to the corresponding metric. By default, all properties are true, -/// and [TextStyle.height] is applied as normal. When set to false, the font's -/// default ascent will be used. -/// {@endtemplate} - void _loadFontFromList(Uint8List list, _Callback callback, String? fontFamily) native 'loadFontFromList';