Cleanup: remove hard coded file format check in IMB_ispic_type
This is already being checked in the 'is_a' callback.
This commit is contained in:
parent
b5d310b569
commit
bff1707aae
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue