Skip to content

Commit

Permalink
Merge pull request #5109 from cgohlke/patch-2
Browse files Browse the repository at this point in the history
Remove duplicate code
  • Loading branch information
radarhere committed Dec 20, 2020
2 parents 00b08c8 + c1adae6 commit c1707d5
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 c1707d5

Please sign in to comment.