summaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-10-28 12:45:26 +0200
committerGitHub <noreply@github.com>2021-10-28 12:45:26 +0200
commit03eb664e89d01cb9a28a9a2dcbad6aac208fa03b (patch)
tree99bd2365482d5d6408b0a98f8e45cd4d1c5b8896 /image.c
parent5b3221cfa6ae797f3e823f0218b000aa36460577 (diff)
downloadnsxiv-03eb664e89d01cb9a28a9a2dcbad6aac208fa03b.tar.zst
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.
Diffstat (limited to 'image.c')
-rw-r--r--image.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/image.c b/image.c
index 9a687e8..776840d 100644
--- a/image.c
+++ b/image.c
@@ -446,13 +446,7 @@ Imlib_Image img_open(const fileinfo_t *file)
im = imlib_load_image(file->path);
if (im != NULL) {
imlib_context_set_image(im);
-#if HAVE_LIBWEBP
- const char *fmt;
- if ((fmt = imlib_image_format()) != NULL && !STREQ(fmt, "webp") &&
- imlib_image_get_data_for_reading_only() == NULL) {
-#else
if (imlib_image_get_data_for_reading_only() == NULL) {
-#endif
imlib_free_image();
im = NULL;
}