Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Forgot to remove the _SizeOnlyImageDescriptor class - it's no longer …
…needed
  • Loading branch information
tvolkert committed Jan 20, 2023
commit d31fa5854496170130c2d2fb6b579da1f1119e86
13 changes: 0 additions & 13 deletions lib/web_ui/lib/painting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,6 @@ Future<Codec> instantiateImageCodecFromBuffer(
targetHeight: targetHeight,
allowUpscaling: allowUpscaling);

class _SizeOnlyImageDescriptor implements ImageDescriptor {
const _SizeOnlyImageDescriptor(this.width, this.height);

@override
final int width;

@override
final int height;

@override
dynamic noSuchMethod(Invocation invocation) => throw UnsupportedError('ImageDescriptor.${invocation.memberName} is not supported on web within a TargetImageSizeCallback.');
}

Future<Codec> instantiateImageCodecWithSize(
ImmutableBuffer buffer, {
TargetImageSizeCallback? getTargetSize,
Expand Down