Skip to content

Commit 247125d

Browse files
committed
Remove redundant check_matching_details calls
1 parent 943825f commit 247125d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

shared-module/bitmapfilter/__init__.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ void shared_module_bitmapfilter_morph(
193193
const int32_t m_int = (int32_t)MICROPY_FLOAT_C_FUN(round)(65536 * m);
194194
const int32_t b_int = (int32_t)MICROPY_FLOAT_C_FUN(round)(65536 * COLOR_G6_MAX * b);
195195

196-
check_matching_details(bitmap, bitmap);
197-
198196
switch (bitmap->bits_per_value) {
199197
default:
200198
mp_raise_ValueError(MP_ERROR_TEXT("unsupported bitmap depth"));
@@ -308,8 +306,6 @@ void shared_module_bitmapfilter_mix(
308306
wt[i] = (int32_t)MICROPY_FLOAT_C_FUN(round)(scale * weights[i]);
309307
}
310308

311-
check_matching_details(bitmap, bitmap);
312-
313309
switch (bitmap->bits_per_value) {
314310
default:
315311
mp_raise_ValueError(MP_ERROR_TEXT("unsupported bitmap depth"));

0 commit comments

Comments
 (0)