From bff1707aaef367822f4fbb38dbc2477b74e643a4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 10 Nov 2020 11:57:56 +1100 Subject: Cleanup: remove hard coded file format check in IMB_ispic_type This is already being checked in the 'is_a' callback. --- source/blender/imbuf/intern/util.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c index 64b03f332a8..7be58a9ca14 100644 --- a/source/blender/imbuf/intern/util.c +++ b/source/blender/imbuf/intern/util.c @@ -152,11 +152,6 @@ int IMB_ispic_type(const char *name) close(fp); - /* XXX move this exception */ - if ((BIG_LONG(((int *)buf)[0]) & 0xfffffff0) == 0xffd8ffe0) { - return IMB_FTYPE_JPG; - } - for (type = IMB_FILE_TYPES; type < IMB_FILE_TYPES_LAST; type++) { if (type->is_a) { if (type->is_a(buf)) { -- cgit v1.2.3