nsxiv03eb664
remove unnecessary animated webp related check
this code snippet was introduced in https://github.com/nsxiv/nsxiv/pull/20/commits/2703809a23bdf3fe426466c7a10f41d747913128 but does not seem to be needed. from what i can tell this is some sort of hack that might've been needed back when we didn't bypass imlib2 when loading webp.
+0 −6
1 file changed
- M image.c +0 −6
| @@ -446,13 +446,7 @@ Imlib_Image img_open(const fileinfo_t *file) | |||
| 446 | 446 | im = imlib_load_image(file->path); | |
| 447 | 447 | if (im != NULL) { | |
| 448 | 448 | imlib_context_set_image(im); | |
| 449 | − | #if HAVE_LIBWEBP | |
| 450 | − | const char *fmt; | |
| 451 | − | if ((fmt = imlib_image_format()) != NULL && !STREQ(fmt, "webp") && | |
| 452 | − | imlib_image_get_data_for_reading_only() == NULL) { | |
| 453 | − | #else | |
| 454 | 449 | if (imlib_image_get_data_for_reading_only() == NULL) { | |
| 455 | − | #endif | |
| 456 | 450 | imlib_free_image(); | |
| 457 | 451 | im = NULL; | |
| 458 | 452 | } | |