Merge pull request #5109 from cgohlke/patch-2

Remove duplicate code
This commit is contained in:
Andrew Murray 2020-12-20 12:09:08 +11:00 committed by GitHub
commit c1707d5d55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1147,10 +1147,6 @@ cms_profile_getattr_media_white_point_temperature(CmsProfileObject *self, void*
}
XYZ = (cmsCIEXYZ*) cmsReadTag(self->profile, info);
if (!XYZ) {
Py_INCREF(Py_None);
return Py_None;
}
if (XYZ == NULL || XYZ->X == 0) {
Py_INCREF(Py_None);
return Py_None;
@ -1499,8 +1495,6 @@ setup_module(PyObject* m) {
PyObject *v;
int vn;
d = PyModule_GetDict(m);
CmsProfile_Type.tp_new = PyType_GenericNew;
/* Ready object types */