From 7211a4779011bb1d239d47db4fca0d8ebefe4501 Mon Sep 17 00:00:00 2001 From: Mouad Debbar Date: Tue, 8 Aug 2023 14:31:57 -0400 Subject: [PATCH] [web] Remove some unused functions --- lib/web_ui/lib/painting.dart | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/web_ui/lib/painting.dart b/lib/web_ui/lib/painting.dart index b974b4868968d..bbe34743925ef 100644 --- a/lib/web_ui/lib/painting.dart +++ b/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) {