Remove duplicate code

This commit is contained in:
Christoph Gohlke 2020-12-19 15:07:51 -08:00 committed by GitHub
parent c52c3ae3e2
commit c1adae6f70
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 */