Skip to content

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Dec 19, 2020
1 parent c52c3ae commit c1adae6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/_imagingcms.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit c1adae6

Please sign in to comment.