Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d31fa58

Browse files
committed
Forgot to remove the _SizeOnlyImageDescriptor class - it's no longer needed
1 parent cb7cf84 commit d31fa58

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/web_ui/lib/painting.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -491,19 +491,6 @@ Future<Codec> instantiateImageCodecFromBuffer(
491491
targetHeight: targetHeight,
492492
allowUpscaling: allowUpscaling);
493493

494-
class _SizeOnlyImageDescriptor implements ImageDescriptor {
495-
const _SizeOnlyImageDescriptor(this.width, this.height);
496-
497-
@override
498-
final int width;
499-
500-
@override
501-
final int height;
502-
503-
@override
504-
dynamic noSuchMethod(Invocation invocation) => throw UnsupportedError('ImageDescriptor.${invocation.memberName} is not supported on web within a TargetImageSizeCallback.');
505-
}
506-
507494
Future<Codec> instantiateImageCodecWithSize(
508495
ImmutableBuffer buffer, {
509496
TargetImageSizeCallback? getTargetSize,

0 commit comments

Comments
 (0)