From 3aa0243ab76575118a514291736d804ec59bf448 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Mon, 31 Aug 2020 10:03:12 -0700 Subject: [PATCH] Remove assert about release mode (#64813) b/150295238 has been resolved for a while now. --- packages/flutter/lib/src/painting/image_cache.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/painting/image_cache.dart b/packages/flutter/lib/src/painting/image_cache.dart index e8d7066c71..28d68fa9da 100644 --- a/packages/flutter/lib/src/painting/image_cache.dart +++ b/packages/flutter/lib/src/painting/image_cache.dart @@ -275,10 +275,7 @@ class ImageCache { /// Resizes the cache as appropriate to maintain the constraints of /// [maximumSize] and [maximumSizeBytes]. void _touch(Object key, _CachedImage image, TimelineTask? timelineTask) { - // TODO(dnfield): Some customers test in release mode with asserts enabled. - // This is bound to cause problems, b/150295238 is tracking that. For now, - // avoid this being a point of failure. - assert(kReleaseMode || timelineTask != null); + assert(timelineTask != null); if (image.sizeBytes != null && image.sizeBytes! <= maximumSizeBytes) { _currentSizeBytes += image.sizeBytes!; _cache[key] = image;