Revert "GIF, TIFF, WEBP loaders: Fix loading if filename does not have usual suffix"

This reverts commit 43f82f3bc8.
This commit is contained in:
Kim Woelders 2021-09-15 19:19:28 +02:00
parent 43f82f3bc8
commit b71221ce76
3 changed files with 0 additions and 4 deletions

View File

@ -18,7 +18,6 @@ load2(ImlibImage * im, int load_data)
DATA32 colormap[256];
fd = dup(fileno(im->fp));
lseek(fd, 0, SEEK_SET);
#if GIFLIB_MAJOR >= 5
gif = DGifOpenFileHandle(fd, NULL);

View File

@ -247,7 +247,6 @@ load2(ImlibImage * im, int load_data)
rgba_image.image = NULL;
fd = fileno(im->fp);
lseek(fd, 0, SEEK_SET);
if (read(fd, &magic_number, sizeof(uint16_t)) != sizeof(uint16_t))
goto quit;

View File

@ -53,8 +53,6 @@ load2(ImlibImage * im, int load_data)
if (!encoded_data)
goto quit;
lseek(fd, 0, SEEK_SET);
/* Check signature */
size = 12;
if (read(fd, encoded_data, size) != (long)size)