From 8dfbed3af4b9edc72b7f1bc6ecc98fb7f6fb75ee Mon Sep 17 00:00:00 2001 From: Mouad Debbar Date: Wed, 23 Aug 2023 15:18:54 -0400 Subject: [PATCH] [web] Remove some unused functions (flutter/engine#44505) --- engine/src/flutter/lib/web_ui/lib/painting.dart | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/engine/src/flutter/lib/web_ui/lib/painting.dart b/engine/src/flutter/lib/web_ui/lib/painting.dart index 24261b30e0..026f20bfe6 100644 --- a/engine/src/flutter/lib/web_ui/lib/painting.dart +++ b/engine/src/flutter/lib/web_ui/lib/painting.dart @@ -5,18 +5,6 @@ // For documentation see https://github.com/flutter/engine/blob/main/lib/ui/painting.dart part of ui; -// ignore: unused_element, Used in Shader assert. -bool _offsetIsValid(Offset offset) { - assert(!offset.dx.isNaN && !offset.dy.isNaN, 'Offset argument contained a NaN value.'); - return true; -} - -// ignore: unused_element, Used in Shader assert. -bool _matrix4IsValid(Float32List matrix4) { - assert(matrix4.length == 16, 'Matrix4 must have 16 entries.'); - return true; -} - void _validateColorStops(List colors, List? colorStops) { if (colorStops == null) { if (colors.length != 2) {