File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -217,8 +217,6 @@ -(void)assertMono8: (NSString*)filename img:(CGImageRef)img expectedNumComponent
217
217
size_t const stride = CGImageGetBytesPerRow (img);
218
218
size_t const bitsPerPixel = CGImageGetBitsPerPixel (img);
219
219
size_t const bytesPerPixel = bitsPerPixel/8 ;
220
- size_t const numComponents = bitsPerPixel / CGImageGetBitsPerComponent (img);
221
- XCTAssertTrue (numComponents >= expectedNumComponents);
222
220
for (size_t y = 0 ; y < height; ++y) {
223
221
for (size_t x = 0 ; x < width; ++x) {
224
222
UInt16* pix = (UInt16*)(buf + (stride * y) + (bytesPerPixel * x));
@@ -255,8 +253,6 @@ -(void)assertMono16: (NSString*)filename img:(CGImageRef)img expectedNumComponen
255
253
size_t const stride = CGImageGetBytesPerRow (img);
256
254
size_t const bitsPerPixel = CGImageGetBitsPerPixel (img);
257
255
size_t const bytesPerPixel = bitsPerPixel/8 ;
258
- size_t const numComponents = bitsPerPixel / CGImageGetBitsPerComponent (img);
259
- XCTAssertTrue (numComponents >= expectedNumComponents);
260
256
for (size_t y = 0 ; y < height; ++y) {
261
257
for (size_t x = 0 ; x < width; ++x) {
262
258
UInt16* pix = (UInt16*)(buf + (stride * y) + (bytesPerPixel * x));
You can’t perform that action at this time.
0 commit comments