diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-10 03:57:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-10 03:58:56 +0300 |
commit | bff1707aaef367822f4fbb38dbc2477b74e643a4 (patch) | |
tree | 6d5c37b6f6352a9a08799fdad1085a184536adb0 /source/blender/imbuf | |
parent | b5d310b569e07a937798a2d38539cfd290149f1c (diff) |
Cleanup: remove hard coded file format check in IMB_ispic_type
This is already being checked in the 'is_a' callback.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/util.c | 5 |
1 files changed, 0 insertions, 5 deletions
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)) { |