Skip to content

Commit

Permalink
clean up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed Dec 14, 2024
1 parent 984f20a commit e73d2c7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions lib/src/formats/exr/exr_channel.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../../util/_internal.dart';
import '../../util/image_exception.dart';
import '../../util/input_buffer.dart';

@internal
Expand Down Expand Up @@ -77,8 +76,6 @@ class ExrChannel {
case ExrChannelType.float:
dataSize = 4;
break;
default:
throw ImageException('EXR Invalid pixel type: $dataType');
}
}

Expand Down
2 changes: 0 additions & 2 deletions lib/src/formats/png_decoder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,6 @@ class PngDecoder extends Decoder {
row[x] = (row[x] + paeth) & 0xff;
}
break;
default:
throw ImageException('Invalid filter value: $filterType');
}
}

Expand Down
2 changes: 0 additions & 2 deletions lib/src/formats/webp/vp8l.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ class VP8L {
break;
case VP8LImageTransformType.subtractGreen:
break;
default:
throw ImageException('Invalid WebP transform type: $type');
}

return ok;
Expand Down
2 changes: 0 additions & 2 deletions lib/src/transform/copy_expand_canvas.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ Image copyExpandCanvas(Image src,
xPos = newWidth - srcConverted.width;
yPos = newHeight - srcConverted.height;
break;
default:
throw ArgumentError('Invalid position provided');
}

// Copy the original image to the new frames/canvas
Expand Down

0 comments on commit e73d2c7

Please sign in to comment.